<!DOCTYPE html><html lang=en><head>
  <meta content="text/html; charset=utf-8" http-equiv=Content-Type>
  <title>Geometry Interfaces Module Level 1</title>
  <link href=../default.css rel=stylesheet type=text/css>
  <link href=https://www.w3.org/StyleSheets/TR/W3C-CR rel=stylesheet type=text/css>

<script src="../shared/MathJax/MathJax.js?config=MML_SVGorMML,local/local"></script>

<style type=text/css>
a[data-link-type=element]::before,span[data-link-type=element]::before {
  content: '<';
}
a[data-link-type=element]::after,span[data-link-type=element]::after {
  content: '>';
}
</style>

</head>
<body class=h-entry>
<div class=head>
  <p data-fill-with=logo><a class=logo href=http://www.w3.org/>
    <img alt=W3C height=48 src=https://www.w3.org/Icons/w3c_home width=72>
</a>
</p>
  <h1 class="p-name no-ref" id=title>Geometry Interfaces Module Level 1</h1>
  <h2 class="no-num no-toc no-ref heading settled" id=subtitle><span class=content>W3C Candidate Recommendation,
    <span class=dt-updated><span class=value-title title=20141106>6 November 2014</span></span></span></h2>
  <div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://www.w3.org/TR/2014/CR-geometry-1-20141106/>http://www.w3.org/TR/2014/CR-geometry-1-20141106/</a><dt>Latest version:<dd><a href=http://www.w3.org/TR/geometry-1/>http://www.w3.org/TR/geometry-1/</a><dt>Editor's Draft:<dd><a href=http://dev.w3.org/fxtf/geometry/>http://dev.w3.org/fxtf/geometry/</a><dt>Previous Versions:<dd><a href=http://www.w3.org/TR/2014/WD-geometry-1-20140522/ rel=previous>http://www.w3.org/TR/2014/WD-geometry-1-20140522/</a><dt>Feedback:<dd><span><a href="mailto:public-fx@w3.org?subject=%5Bgeometry%5D%20feedback">public-fx@w3.org</a> with subject line “<kbd>[geometry] <var>… message topic …</var></kbd>” (<a href=http://lists.w3.org/Archives/Public/public-fx/ rel=discussion>archives</a>)</span><dt>Test Suite:<dd><a href=http://test.csswg.org/suites/geometry-1_dev/nightly-unstable/>http://test.csswg.org/suites/geometry-1_dev/nightly-unstable/</a><dt class=editor>Editors:<dd class=editor><div class="p-author h-card vcard"><a class="p-name fn u-email email" href=mailto:simonp@opera.com>Simon Pieters</a> (<span class="p-org org">Opera Software ASA</span>)</div><dd class=editor><div class="p-author h-card vcard"><a class="p-name fn u-email email" href=mailto:dschulze@adobe.com>Dirk Schulze</a> (<span class="p-org org">Adobe Systems Inc.</span>)</div><dd class=editor><div class="p-author h-card vcard"><a class="p-name fn u-email email" href=mailto:cabanier@adobe.com>Rik Cabanier</a> (<span class="p-org org">Adobe Systems Inc.</span>)</div><dt>Issues list:<dd><span><a href="https://www.w3.org/Bugs/Public/buglist.cgi?product=FXTF&amp;component=Geometry&amp;resolution=---">Bugzilla</a> (<a href="https://www.w3.org/Bugs/Public/enter_bug.cgi?product=FXTF&amp;component=Geometry">file a bug</a>)</span></dl></div>
  <div data-fill-with=warning></div>
  <p class=copyright data-fill-with=copyright><a href=http://www.w3.org/Consortium/Legal/ipr-notice#Copyright>Copyright</a> © 2014 <a href=http://www.w3.org/><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup> (<a href=http://www.csail.mit.edu/><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>, <a href=http://www.ercim.eu/><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>, <a href=http://www.keio.ac.jp/>Keio</a>, <a href=http://ev.buaa.edu.cn/>Beihang</a>), All Rights Reserved. W3C <a href=http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer>liability</a>, <a href=http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks>trademark</a> and <a href=http://www.w3.org/Consortium/Legal/copyright-documents>document use</a> rules apply.
</p>
  <hr title="Separator for header">
</div>

<h2 class="no-num no-toc no-ref heading settled" id=abstract><span class=content>Abstract</span></h2>
<div class=p-summary data-fill-with=abstract><p>This specification provides basic geometric interfaces to represent points, rectangles, quadrilaterals and transformation matrices that can be used by other modules or specifications.</p>

</div>

<h2 class="no-num no-toc no-ref heading settled" id=status><span class=content>Status of this document</span></h2>
<div data-fill-with=status><p>
	<em>This section describes the status of this document at the time of its publication. 
		Other documents may supersede this document. 
		A list of current W3C publications and the latest revision of this technical report 
		can be found in the <a href=http://www.w3.org/TR/>W3C technical reports index at http://www.w3.org/TR/.</a></em>

<p>
	This document was produced by the <a href=http://www.w3.org/Style/CSS/members>CSS Working Group</a> 
	(part of the <a href=http://www.w3.org/Style/>Style Activity</a>) and the <a href=http://www.w3.org/Graphics/SVG/WG/>SVG Working Group</a> (part of the
	<a href=http://www.w3.org/Graphics/>Graphics Activity</a>) as a
	<a href=http://www.w3.org/2005/10/Process-20051014/tr.html#maturity-levels>Candidate
	Recommendation</a>.

<p>
	A Candidate Recommendation is a document that has been widely reviewed
	and is ready for implementation. W3C encourages everybody to implement
	this specification and return comments to the 
	(<a href=http://lists.w3.org/Archives/Public/public-fx/>archived</a>)
	public mailing list
	<a href="mailto:public-fx@w3.org?Subject=%5Bgeometry%5D%20PUT%20SUBJECT%20HERE">public-fx@w3.org</a> 
	(see <a href=http://www.w3.org/Mail/Request>instructions</a>). 
	When sending e-mail, please put the text “geometry” in the subject, 
	preferably like this: “[geometry] <em>…summary of comment…</em>”

<p>
	Publication as a Candidate Recommendation does not imply endorsement
	by the W3C Membership. This is a draft document and may be updated,
	replaced or obsoleted by other documents at any time. It is inappropriate
	to cite this document as other than work in progress.

<p>
	This document was produced by groups operating under 
	the <a href=http://www.w3.org/Consortium/Patent-Policy-20040205/>5
	February 2004 W3C Patent Policy</a>. W3C maintains a <a href=http://www.w3.org/2004/01/pp-impl/32061/status rel=disclosure>public list of any patent disclosures (CSS)</a>
	and a <a href=http://www.w3.org/2004/01/pp-impl/19480/status rel=disclosure>public list of any patent disclosures (SVG)</a> 
	made in connection with the deliverables of each group; 
	these pages also includes instructions for disclosing a patent. 
	An individual who has actual knowledge of a patent which the individual
	believes contains <a href=http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential>Essential
	Claim(s)</a> must disclose the information in accordance with
	<a href=http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure>section
	6 of the W3C Patent Policy</a>.

<p>
	A test suite and implementation report for Geometry Interfaces Module Level 1 will be developed during
	the Candidate Recommendation phase, which will last a minimum of six months,
	and at least until 6 May 2015.
	See the section <a href=#cr-exit-criteria>“CR
	exit criteria”</a> for more details.</div>
<div data-fill-with=at-risk><p>The following features are at-risk, and may be dropped during the CR period:
<ul><li>The <a class=idl-code data-link-type=interface href=#dom-domrectlist title=DOMRectList>DOMRectList</a> interface is at-risk. The authors of this specification await feedback from implementers if the item() function of <a class=idl-code data-link-type=interface href=#dom-domrectlist title=DOMRectList>DOMRectList</a> is currently in use on legacy interfaces. If there is no/not enough content to justify <a class=idl-code data-link-type=interface href=#dom-domrectlist title=DOMRectList>DOMRectList</a>, legacy interfaces must use sequences instead and <a class=idl-code data-link-type=interface href=#dom-domrectlist title=DOMRectList>DOMRectList</a> will be removed from this specification.</ul></div>

<h2 class="no-num no-toc no-ref heading settled" id=contents><span class=content>Table of Contents</span></h2>
<div data-fill-with=table-of-contents><ul class=toc><li><a href=#intro><span class=secno>1</span> <span class=content>Introduction</span></a><li><a href=#DOMPoint><span class=secno>2</span> <span class=content>
The DOMPoint interfaces</span></a><li><a href=#DOMRect><span class=secno>3</span> <span class=content>
The DOMRect interfaces</span></a><li><a href=#DOMRectList><span class=secno>4</span> <span class=content>
The DOMRectList Interface</span></a><li><a href=#DOMQuad><span class=secno>5</span> <span class=content>
The DOMQuad interface</span></a><li><a href=#DOMMatrix><span class=secno>6</span> <span class=content>
The DOMMatrix interfaces</span></a><ul class=toc><li><a href=#dommatrixreadonly-constructors><span class=secno>6.1</span> <span class=content>DOMMatrixReadOnly constructor</span></a><li><a href=#dommatrix-constructors><span class=secno>6.2</span> <span class=content>DOMMatrix constructors</span></a><li><a href=#dommatrix-attributes><span class=secno>6.3</span> <span class=content>DOMMatrix attributes</span></a><li><a href=#immutable-transformation-methods><span class=secno>6.4</span> <span class=content>Immutable transformation methods</span></a><li><a href=#mutable-transformation-methods><span class=secno>6.5</span> <span class=content>Mutable transformation methods</span></a></ul><li><a href=#cloning><span class=secno>7</span> <span class=content>Cloning</span></a><li><a href=#changes><span class=secno></span> <span class=content>Changes since last publication</span></a><li><a href=#acknowledgments><span class=secno></span> <span class=content>Acknowledgments</span></a><li><a href=#conformance><span class=secno></span> <span class=content>
Conformance</span></a><ul class=toc><li><a href=#conventions><span class=secno></span> <span class=content>
Document conventions</span></a><li><a href=#conformance-classes><span class=secno></span> <span class=content>
Conformance classes</span></a><li><a href=#partial><span class=secno></span> <span class=content>
Partial implementations</span></a><li><a href=#experimental><span class=secno></span> <span class=content>
Experimental implementations</span></a><li><a href=#testing><span class=secno></span> <span class=content>
Non-experimental implementations</span></a><li><a href=#cr-exit-criteria><span class=secno></span> <span class=content>
CR exit criteria</span></a></ul><li><a href=#references><span class=secno></span> <span class=content>References</span></a><ul class=toc><li><a href=#normative><span class=secno></span> <span class=content>Normative References</span></a><li><a href=#informative><span class=secno></span> <span class=content>Informative References</span></a></ul><li><a href=#index><span class=secno></span> <span class=content>Index</span></a><li><a href=#idl-index><span class=secno></span> <span class=content>IDL Index</span></a></ul></div>




<h2 class="heading settled" data-level=1 id=intro><span class=secno>1. </span><span class=content>Introduction</span><a class=self-link href=#intro></a></h2>

<p>This specification describes several geometry interfaces <a data-biblio-type=normative data-link-type=biblio href=#biblio-webidl title=WEBIDL>[WEBIDL]</a> for the representation of points, rectangles, quadrilaterals and transformation matrices with the dimension of 3x2 and 4x4.</p>

<p>The SVG interfaces SVGPoint, SVGRect and SVGMatrix <a data-biblio-type=informative data-link-type=biblio href=#biblio-svg11 title=SVG11>[SVG11]</a> are aliasing the here defined interfaces in favor for common interfaces used by SVG, Canvas 2D Context <a data-biblio-type=informative data-link-type=biblio href=#biblio-2dcontext title=2DCONTEXT>[2DCONTEXT]</a> and CSS Transforms <a data-biblio-type=normative data-link-type=biblio href=#biblio-css3-transforms title=CSS3-TRANSFORMS>[CSS3-TRANSFORMS]</a>.</p>

<h2 class="heading settled" data-level=2 id=DOMPoint><span class=secno>2. </span><span class=content>
The DOMPoint interfaces</span><a class=self-link href=#DOMPoint></a></h2>

<p>A 2D or a 3D <dfn data-dfn-type=dfn data-noexport="" id=point>point<a class=self-link href=#point></a></dfn> can be represented by the following WebIDL interfaces:</p>

<pre class=idl>[Constructor(unrestricted double <dfn class=idl-code data-dfn-for=DOMPointReadOnly/DOMPointReadOnly() data-dfn-type=argument data-export="" data-global-name="DOMPointReadOnly<interface>/DOMPointReadOnly()<method>/x<argument>" id=dom-dompointreadonly-dompointreadonly-x>x<a class=self-link href=#dom-dompointreadonly-dompointreadonly-x></a></dfn>, unrestricted double <dfn class=idl-code data-dfn-for=DOMPointReadOnly/DOMPointReadOnly() data-dfn-type=argument data-export="" data-global-name="DOMPointReadOnly<interface>/DOMPointReadOnly()<method>/y<argument>" id=dom-dompointreadonly-dompointreadonly-y>y<a class=self-link href=#dom-dompointreadonly-dompointreadonly-y></a></dfn>,
             unrestricted double <dfn class=idl-code data-dfn-for=DOMPointReadOnly/DOMPointReadOnly() data-dfn-type=argument data-export="" data-global-name="DOMPointReadOnly<interface>/DOMPointReadOnly()<method>/z<argument>" id=dom-dompointreadonly-dompointreadonly-z>z<a class=self-link href=#dom-dompointreadonly-dompointreadonly-z></a></dfn>, unrestricted double <dfn class=idl-code data-dfn-for=DOMPointReadOnly/DOMPointReadOnly() data-dfn-type=argument data-export="" data-global-name="DOMPointReadOnly<interface>/DOMPointReadOnly()<method>/w<argument>" id=dom-dompointreadonly-dompointreadonly-w>w<a class=self-link href=#dom-dompointreadonly-dompointreadonly-w></a></dfn>),
 Exposed=(Window,Worker)]
interface <dfn class=idl-code data-dfn-type=interface data-export="" data-global-name="" id=dom-dompointreadonly>DOMPointReadOnly<a class=self-link href=#dom-dompointreadonly></a></dfn> {
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMPointReadOnly<interface>/x<attribute>" data-link-for=DOMPointReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dompointreadonly-dompoint-x title=x>x</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMPointReadOnly<interface>/y<attribute>" data-link-for=DOMPointReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dompointreadonly-dompoint-y title=y>y</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMPointReadOnly<interface>/z<attribute>" data-link-for=DOMPointReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dompointreadonly-dompoint-z title=z>z</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMPointReadOnly<interface>/w<attribute>" data-link-for=DOMPointReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dompointreadonly-dompoint-w title=w>w</a>;

    <a data-link-type=idl-name href=#dom-dompoint title=DOMPoint>DOMPoint</a> <a class=idl-code data-global-name="DOMPointReadOnly<interface>/matrixtransform()<method>" data-link-for=DOMPointReadOnly data-link-type=method href=#dom-dompointreadonly-matrixtransform title=matrixTransform()>matrixTransform</a>(<a data-link-type=idl-name href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> <dfn class=idl-code data-dfn-for=DOMPointReadOnly/matrixTransform() data-dfn-type=argument data-export="" data-global-name="DOMPointReadOnly<interface>/matrixTransform()<method>/matrix<argument>" id=dom-dompointreadonly-matrixtransform-matrix>matrix<a class=self-link href=#dom-dompointreadonly-matrixtransform-matrix></a></dfn>);
};

[Constructor(optional <a data-link-type=idl-name href=#dictdef-dompointinit title=DOMPointInit>DOMPointInit</a> <dfn class=idl-code data-dfn-for=DOMPoint/DOMPoint() data-dfn-type=argument data-export="" data-global-name="DOMPoint<interface>/DOMPoint()<method>/point<argument>" id=dom-dompoint-dompoint-point>point<a class=self-link href=#dom-dompoint-dompoint-point></a></dfn>),
 Constructor(optional unrestricted double <dfn class=idl-code data-dfn-for=DOMPoint/DOMPoint() data-dfn-type=argument data-export="" data-global-name="DOMPoint<interface>/DOMPoint()<method>/x<argument>" id=dom-dompoint-dompoint-x>x<a class=self-link href=#dom-dompoint-dompoint-x></a></dfn> = 0, optional unrestricted double <dfn class=idl-code data-dfn-for=DOMPoint/DOMPoint() data-dfn-type=argument data-export="" data-global-name="DOMPoint<interface>/DOMPoint()<method>/y<argument>" id=dom-dompoint-dompoint-y>y<a class=self-link href=#dom-dompoint-dompoint-y></a></dfn> = 0,
             optional unrestricted double <dfn class=idl-code data-dfn-for=DOMPoint/DOMPoint() data-dfn-type=argument data-export="" data-global-name="DOMPoint<interface>/DOMPoint()<method>/z<argument>" id=dom-dompoint-dompoint-z>z<a class=self-link href=#dom-dompoint-dompoint-z></a></dfn> = 0, optional unrestricted double <dfn class=idl-code data-dfn-for=DOMPoint/DOMPoint() data-dfn-type=argument data-export="" data-global-name="DOMPoint<interface>/DOMPoint()<method>/w<argument>" id=dom-dompoint-dompoint-w>w<a class=self-link href=#dom-dompoint-dompoint-w></a></dfn> = 1),
 Exposed=(Window,Worker)]
interface <dfn class=idl-code data-dfn-type=interface data-export="" data-global-name="" id=dom-dompoint>DOMPoint<a class=self-link href=#dom-dompoint></a></dfn> : <a data-link-type=idl-name href=#dom-dompointreadonly title=DOMPointReadOnly>DOMPointReadOnly</a> {
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMPoint<interface>/x<attribute>" data-link-for=DOMPoint data-link-type=attribute data-type="unrestricted double " href=#dom-dompointreadonly-dompoint-x title=x>x</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMPoint<interface>/y<attribute>" data-link-for=DOMPoint data-link-type=attribute data-type="unrestricted double " href=#dom-dompointreadonly-dompoint-y title=y>y</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMPoint<interface>/z<attribute>" data-link-for=DOMPoint data-link-type=attribute data-type="unrestricted double " href=#dom-dompointreadonly-dompoint-z title=z>z</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMPoint<interface>/w<attribute>" data-link-for=DOMPoint data-link-type=attribute data-type="unrestricted double " href=#dom-dompointreadonly-dompoint-w title=w>w</a>;
};

dictionary <dfn class=idl-code data-dfn-type=dictionary data-export="" data-global-name="" id=dictdef-dompointinit>DOMPointInit<a class=self-link href=#dictdef-dompointinit></a></dfn> {
    unrestricted double <dfn class=idl-code data-default=0 data-dfn-for=DOMPointInit data-dfn-type=dict-member data-export="" data-global-name="DOMPointInit<dictionary>/x<dict-member>" data-type="unrestricted double " id=dom-dompointinit-x>x<a class=self-link href=#dom-dompointinit-x></a></dfn> = 0;
    unrestricted double <dfn class=idl-code data-default=0 data-dfn-for=DOMPointInit data-dfn-type=dict-member data-export="" data-global-name="DOMPointInit<dictionary>/y<dict-member>" data-type="unrestricted double " id=dom-dompointinit-y>y<a class=self-link href=#dom-dompointinit-y></a></dfn> = 0;
    unrestricted double <dfn class=idl-code data-default=0 data-dfn-for=DOMPointInit data-dfn-type=dict-member data-export="" data-global-name="DOMPointInit<dictionary>/z<dict-member>" data-type="unrestricted double " id=dom-dompointinit-z>z<a class=self-link href=#dom-dompointinit-z></a></dfn> = 0;
    unrestricted double <dfn class=idl-code data-default=1 data-dfn-for=DOMPointInit data-dfn-type=dict-member data-export="" data-global-name="DOMPointInit<dictionary>/w<dict-member>" data-type="unrestricted double " id=dom-dompointinit-w>w<a class=self-link href=#dom-dompointinit-w></a></dfn> = 1;
};
</pre>

<p>The following algorithms assume that <a class=idl-code data-link-type=interface href=#dom-dompointreadonly title=DOMPointReadOnly>DOMPointReadOnly</a> objects have the internal member variables <dfn data-dfn-for=point data-dfn-type=dfn data-noexport="" id=x-coordinate>x coordinate<a class=self-link href=#x-coordinate></a></dfn>, <dfn data-dfn-for=point data-dfn-type=dfn data-noexport="" id=y-coordinate>y coordinate<a class=self-link href=#y-coordinate></a></dfn>, <dfn data-dfn-for=point data-dfn-type=dfn data-noexport="" id=z-coordinate>z coordinate<a class=self-link href=#z-coordinate></a></dfn> and <dfn data-dfn-for=point data-dfn-type=dfn data-noexport="" id=w-perspective>w perspective<a class=self-link href=#w-perspective></a></dfn>. <a class=idl-code data-link-type=interface href=#dom-dompointreadonly title=DOMPointReadOnly>DOMPointReadOnly</a> as well as the inheriting interface <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> must be able to access and set the value of these variables.</p>

<p>An interface returning an <a class=idl-code data-link-type=interface href=#dom-dompointreadonly title=DOMPointReadOnly>DOMPointReadOnly</a> object by an attribute or function may be able to modify internal member variable values. Such an interface must specify this ability explicitly in prose.</p>

<p>Internal member variables must not be exposed in any way.</p>

<p>The <dfn class=idl-code data-dfn-for=DOMPointReadOnly data-dfn-type=constructor data-export="" id=dom-dompointreadonly-dompointreadonly title=DOMPointReadOnly()><code>DOMPointReadOnly(x, y, z, w)</code><a class=self-link href=#dom-dompointreadonly-dompointreadonly></a></dfn> constructor, when invoked, must run the following steps:</p>

<ol class=algorithm>
  <li>Set the the current object’s variables <a data-link-for=point data-link-type=dfn href=#x-coordinate title="x coordinate">x coordinate</a> to <var>x</var>, <a data-link-for=point data-link-type=dfn href=#y-coordinate title="y coordinate">y coordinate</a> to <var>y</var>, <a data-link-type=dfn href=#z-coordinate title="z coordinate">z coordinate</a> to <var>z</var> and <a data-link-type=dfn href=#w-perspective title="w perspective">w perspective</a> to <var>w</var>.</li>
  <li>Return the new <a class=idl-code data-link-type=interface href=#dom-dompointreadonly title=DOMPointReadOnly>DOMPointReadOnly</a> object.</li>
</ol>

<p>The <dfn class=idl-code data-dfn-for=DOMPoint data-dfn-type=constructor data-export="" id=dom-dompoint-dompoint><code>DOMPoint()</code><a class=self-link href=#dom-dompoint-dompoint></a></dfn> constructor, when invoked, must run the following steps:</p>

<dl class=switch>
  <dt>If invoked with a <a class=idl-code data-link-type=dictionary href=#dictdef-dompointinit title=DOMPointInit>DOMPointInit</a> argument</dt>
  <dd>
    <ol class=algorithm>
      <li>Let <var>point</var> be the argument.</li>
      <li>Call the constructor of <a class=idl-code data-link-type=interface href=#dom-dompointreadonly title=DOMPointReadOnly>DOMPointReadOnly</a> with the arguments <var>x</var>, <var>y</var>, <var>z</var>, <var>w</var>, where:
        <ol>
          <li><var>x</var> is the <code>x</code> dictionary member of <var>point</var>.
          <li><var>y</var> is the <code>y</code> dictionary member of <var>point</var>.
          <li><var>z</var> is the <code>z</code> dictionary member of <var>point</var>.
          <li><var>w</var> is the <code>w</code> dictionary member of <var>point</var>.
        </ol>
      </li>
      <li>Return the new <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> object.</li>
    </ol>
  </dd>
  <dt>Otherwise</dt>
  <dd>
    <ol class=algorithm>
      <li>Call the constructor of <a class=idl-code data-link-type=interface href=#dom-dompointreadonly title=DOMPointReadOnly>DOMPointReadOnly</a> with the arguments <var>x</var>, <var>y</var>, <var>z</var> and <var>w</var>, respectively.</li>
      <li>Return the new <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> object.</li>
    </ol>
  </dd>
</dl>

<div data-dfn-for="DOMPointReadOnly DOMPoint" data-dfn-type=attribute>
  The <dfn class=idl-code data-dfn-for="DOMPointReadOnly DOMPoint" data-dfn-type=attribute data-export="" id=dom-dompointreadonly-dompoint-x>x<a class=self-link href=#dom-dompointreadonly-dompoint-x></a></dfn> attribute, on getting, must return the <a data-link-for=point data-link-type=dfn href=#x-coordinate title="x coordinate">x coordinate</a> value of the object it was invoked on. For the <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> interface, setting the <a class=idl-code data-link-for=DOMPoint data-link-type=attribute href=#dom-dompointreadonly-dompoint-x title=x>x</a> attribute must set the <a data-link-for=point data-link-type=dfn href=#x-coordinate title="x coordinate">x coordinate</a> value of the object it was invoked on to the new value.

<p>The <dfn class=idl-code data-dfn-for="DOMPointReadOnly DOMPoint" data-dfn-type=attribute data-export="" id=dom-dompointreadonly-dompoint-y>y<a class=self-link href=#dom-dompointreadonly-dompoint-y></a></dfn> attribute, on getting, must return the <a data-link-for=point data-link-type=dfn href=#y-coordinate title="y coordinate">y coordinate</a> value of the object it was invoked on. For the <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> interface, setting the <a class=idl-code data-link-for=DOMPoint data-link-type=attribute href=#dom-dompointreadonly-dompoint-y title=y>y</a> attribute must set the <a data-link-for=point data-link-type=dfn href=#y-coordinate title="y coordinate">y coordinate</a> value of the object it was invoked on to the new value.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMPointReadOnly DOMPoint" data-dfn-type=attribute data-export="" id=dom-dompointreadonly-dompoint-z>z<a class=self-link href=#dom-dompointreadonly-dompoint-z></a></dfn> attribute, on getting, must return the <a data-link-type=dfn href=#z-coordinate title="z coordinate">z coordinate</a> value of the object it was invoked on. For the <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> interface, setting the <a class=idl-code data-link-for=DOMPoint data-link-type=attribute href=#dom-dompointreadonly-dompoint-z title=z>z</a> attribute must set the <a data-link-type=dfn href=#z-coordinate title="z coordinate">z coordinate</a> value of the object it was invoked on to the new value.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMPointReadOnly DOMPoint" data-dfn-type=attribute data-export="" id=dom-dompointreadonly-dompoint-w>w<a class=self-link href=#dom-dompointreadonly-dompoint-w></a></dfn> attribute, on getting, must return the <a data-link-type=dfn href=#w-perspective title="w perspective">w perspective</a> value of the object it was invoked on. For the <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> interface, setting the <a class=idl-code data-link-for=DOMPoint data-link-type=attribute href=#dom-dompointreadonly-dompoint-w title=w>w</a> attribute must set the <a data-link-type=dfn href=#w-perspective title="w perspective">w perspective</a> value of the object it was invoked on to the new value.</p>
</div>

<p><dfn class=idl-code data-dfn-for=DOMPointReadOnly data-dfn-type=method data-export="" id=dom-dompointreadonly-matrixtransform title=matrixTransform()>matrixTransform(<var>matrix</var>)<a class=self-link href=#dom-dompointreadonly-matrixtransform></a></dfn>, when invoked, must run the following steps</p>

<ol>
  <li>Create a new <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> <var>point</var> initialized to <a class=idl-code data-link-for=DOMPoint data-link-type=attribute href=#dom-dompointreadonly-dompoint-x title=x>x</a>, <a class=idl-code data-link-for=DOMPoint data-link-type=attribute href=#dom-dompointreadonly-dompoint-y title=y>y</a>, <a class=idl-code data-link-for=DOMPoint data-link-type=attribute href=#dom-dompointreadonly-dompoint-z title=z>z</a> and <a class=idl-code data-link-for=DOMPoint data-link-type=attribute href=#dom-dompointreadonly-dompoint-w title=w>w</a> of the current point.</li>
  <li><a data-link-type=dfn href=#post-multiply title=Post-multiply>Post-multiply</a> <var>point</var> with <var>matrix</var>.</li>
  <li>Return <var>point</var>.</li>
</ol>
<p><a data-link-type=functionish href=#dom-dompointreadonly-matrixtransform title=matrixTransform()>matrixTransform()</a> does not modify the current <a class=idl-code data-link-type=interface href=#dom-dompointreadonly title=DOMPointReadOnly>DOMPointReadOnly</a> object and returns a new <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> object.
<div class=example>
  <p>In this example the method <a class=idl-code data-link-type=method href=#dom-dompointreadonly-matrixtransform title=matrixTransform()>matrixTransform()</a> on <var>point</var> is called with a <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> argument <var>matrix</var>.</p>
  <pre><code>var point = new DOMPoint(5, 4);
var matrix = new DOMMatrix(2, 0, 0, 2, 10, 10);
var transformedPoint = point.matrixTransform(matrix);
  </code></pre>
  <p><var>point</var> creates a new <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> object initialized to the same attribute values as <var>point</var>. This new <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> is now scaled and the translated by <var>matrix</var>. This resulting <var>transformPoint</var> has the attribute values <code>x: 20</code> and <code>y: 18</code>.</p>
</div>

<p>For historical reasons, Window objects must also have a writable, configurable, non-enumerable property named <code>SVGPoint</code> whose value is the <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> interface object.</p>

<h2 class="heading settled" data-level=3 id=DOMRect><span class=secno>3. </span><span class=content>
The DOMRect interfaces</span><a class=self-link href=#DOMRect></a></h2>

<p>Objects implementing the <a class=idl-code data-link-type=interface href=#dom-domrectreadonly title=DOMRectReadOnly>DOMRectReadOnly</a> interface represent a <dfn data-dfn-type=dfn data-noexport="" id=rectangle>rectangle<a class=self-link href=#rectangle></a></dfn>. The type of box is specified by the method or attribute that returns a <a class=idl-code data-link-type=interface href=#dom-domrect title=DOMRect>DOMRect</a> or <a class=idl-code data-link-type=interface href=#dom-domrectreadonly title=DOMRectReadOnly>DOMRectReadOnly</a> object.</p>

<p>Rectangles have the following properties:</p>

<dl data-dfn-for=rectangle>
  <dt><dfn data-dfn-type=dfn data-noexport="" id=origin>origin<a class=self-link href=#origin></a></dfn></dt>
  <dd>
    When the rectangle has a non-negative <a data-link-type=dfn href=http://www.w3.org/TR/css-writing-modes-3/#width title=width>width</a>, the rectangle’s horizontal origin is the left edge; otherwise, it is the right edge. Similarly, when the rectangle has a non-negative <a data-link-type=dfn href=http://www.w3.org/TR/css-writing-modes-3/#height title=height>height</a>, the rectangle’s vertical origin is the top edge; otherwise, it is the bottom edge.
  </dd>
  <dt><dfn data-dfn-type=dfn data-noexport="" id=x-coordinate0>x coordinate<a class=self-link href=#x-coordinate0></a></dfn></dt>
  <dd>
    The horizontal distance between the viewport’s left edge and the rectangle’s <a data-link-type=dfn href=#origin title=origin>origin</a>.
  </dd>
  <dt><dfn data-dfn-type=dfn data-noexport="" id=y-coordinate0>y coordinate<a class=self-link href=#y-coordinate0></a></dfn></dt>
  <dd>
    The vertical distance between the viewport’s top edge and the rectangle’s <a data-link-type=dfn href=#origin title=origin>origin</a>.
  </dd>
  <dt><dfn data-dfn-type=dfn data-noexport="" id=width-dimension>width dimension<a class=self-link href=#width-dimension></a></dfn></dt>
  <dd>
    The width of the rectangle. Can be negative.
  </dd>
  <dt><dfn data-dfn-type=dfn data-noexport="" id=height-dimension>height dimension<a class=self-link href=#height-dimension></a></dfn></dt>
  <dd>
    The height of the rectangle. Can be negative.
  </dd>
</dl>

<pre class=idl>[Constructor(unrestricted double x = 0, unrestricted double y = 0,
             unrestricted double width = 0, unrestricted double height = 0),
 Exposed=(Window,Worker)]
interface <dfn class=idl-code data-dfn-type=interface data-export="" data-global-name="" id=dom-domrect>DOMRect<a class=self-link href=#dom-domrect></a></dfn> : <a data-link-type=idl-name href=#dom-domrectreadonly title=DOMRectReadOnly>DOMRectReadOnly</a> {
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMRect<interface>/x<attribute>" data-link-for=DOMRect data-link-type=attribute data-type="unrestricted double " href=#dom-domrectreadonly-domrect-x title=x>x</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMRect<interface>/y<attribute>" data-link-for=DOMRect data-link-type=attribute data-type="unrestricted double " href=#dom-domrectreadonly-domrect-y title=y>y</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMRect<interface>/width<attribute>" data-link-for=DOMRect data-link-type=attribute data-type="unrestricted double " href=#dom-domrectreadonly-domrect-width title=width>width</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMRect<interface>/height<attribute>" data-link-for=DOMRect data-link-type=attribute data-type="unrestricted double " href=#dom-domrectreadonly-domrect-height title=height>height</a>;
};

[Constructor(unrestricted double <dfn class=idl-code data-dfn-for=DOMRectReadOnly/DOMRectReadOnly() data-dfn-type=argument data-export="" data-global-name="DOMRectReadOnly<interface>/DOMRectReadOnly()<method>/x<argument>" id=dom-domrectreadonly-domrectreadonly-x>x<a class=self-link href=#dom-domrectreadonly-domrectreadonly-x></a></dfn>, unrestricted double <dfn class=idl-code data-dfn-for=DOMRectReadOnly/DOMRectReadOnly() data-dfn-type=argument data-export="" data-global-name="DOMRectReadOnly<interface>/DOMRectReadOnly()<method>/y<argument>" id=dom-domrectreadonly-domrectreadonly-y>y<a class=self-link href=#dom-domrectreadonly-domrectreadonly-y></a></dfn>,
             unrestricted double <dfn class=idl-code data-dfn-for=DOMRectReadOnly/DOMRectReadOnly() data-dfn-type=argument data-export="" data-global-name="DOMRectReadOnly<interface>/DOMRectReadOnly()<method>/width<argument>" id=dom-domrectreadonly-domrectreadonly-width>width<a class=self-link href=#dom-domrectreadonly-domrectreadonly-width></a></dfn>, unrestricted double <dfn class=idl-code data-dfn-for=DOMRectReadOnly/DOMRectReadOnly() data-dfn-type=argument data-export="" data-global-name="DOMRectReadOnly<interface>/DOMRectReadOnly()<method>/height<argument>" id=dom-domrectreadonly-domrectreadonly-height>height<a class=self-link href=#dom-domrectreadonly-domrectreadonly-height></a></dfn>),
 Exposed=(Window,Worker)]
interface <dfn class=idl-code data-dfn-type=interface data-export="" data-global-name="" id=dom-domrectreadonly>DOMRectReadOnly<a class=self-link href=#dom-domrectreadonly></a></dfn> {
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMRectReadOnly<interface>/x<attribute>" data-link-for=DOMRectReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-domrectreadonly-domrect-x title=x>x</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMRectReadOnly<interface>/y<attribute>" data-link-for=DOMRectReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-domrectreadonly-domrect-y title=y>y</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMRectReadOnly<interface>/width<attribute>" data-link-for=DOMRectReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-domrectreadonly-domrect-width title=width>width</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMRectReadOnly<interface>/height<attribute>" data-link-for=DOMRectReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-domrectreadonly-domrect-height title=height>height</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMRectReadOnly<interface>/top<attribute>" data-link-for=DOMRectReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-domrectreadonly-domrect-top title=top>top</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMRectReadOnly<interface>/right<attribute>" data-link-for=DOMRectReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-domrectreadonly-domrect-right title=right>right</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMRectReadOnly<interface>/bottom<attribute>" data-link-for=DOMRectReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-domrectreadonly-domrect-bottom title=bottom>bottom</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMRectReadOnly<interface>/left<attribute>" data-link-for=DOMRectReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-domrectreadonly-domrect-left title=left>left</a>;
};

dictionary <dfn class=idl-code data-dfn-type=dictionary data-export="" data-global-name="" id=dictdef-domrectinit>DOMRectInit<a class=self-link href=#dictdef-domrectinit></a></dfn> {
    unrestricted double <dfn class=idl-code data-default=0 data-dfn-for=DOMRectInit data-dfn-type=dict-member data-export="" data-global-name="DOMRectInit<dictionary>/x<dict-member>" data-type="unrestricted double " id=dom-domrectinit-x>x<a class=self-link href=#dom-domrectinit-x></a></dfn> = 0;
    unrestricted double <dfn class=idl-code data-default=0 data-dfn-for=DOMRectInit data-dfn-type=dict-member data-export="" data-global-name="DOMRectInit<dictionary>/y<dict-member>" data-type="unrestricted double " id=dom-domrectinit-y>y<a class=self-link href=#dom-domrectinit-y></a></dfn> = 0;
    unrestricted double <dfn class=idl-code data-default=0 data-dfn-for=DOMRectInit data-dfn-type=dict-member data-export="" data-global-name="DOMRectInit<dictionary>/width<dict-member>" data-type="unrestricted double " id=dom-domrectinit-width>width<a class=self-link href=#dom-domrectinit-width></a></dfn> = 0;
    unrestricted double <dfn class=idl-code data-default=0 data-dfn-for=DOMRectInit data-dfn-type=dict-member data-export="" data-global-name="DOMRectInit<dictionary>/height<dict-member>" data-type="unrestricted double " id=dom-domrectinit-height>height<a class=self-link href=#dom-domrectinit-height></a></dfn> = 0;
};
</pre>

<p>The following algorithms assume that <a class=idl-code data-link-type=interface href=#dom-domrectreadonly title=DOMRectReadOnly>DOMRectReadOnly</a> objects have the internal member variables <a data-link-for=rectangle data-link-type=dfn href=#x-coordinate0 title="x coordinate">x coordinate</a>, <a data-link-for=rectangle data-link-type=dfn href=#y-coordinate0 title="y coordinate">y coordinate</a>, <a data-link-type=dfn href=#width-dimension title="width dimension">width dimension</a> and <a data-link-type=dfn href=#height-dimension title="height dimension">height dimension</a>. <a class=idl-code data-link-type=interface href=#dom-domrectreadonly title=DOMRectReadOnly>DOMRectReadOnly</a> as well as the inheriting interface <a class=idl-code data-link-type=interface href=#dom-domrect title=DOMRect>DOMRect</a> must be able to access and set the value of these variables.</p>

<p>An interface returning an <a class=idl-code data-link-type=interface href=#dom-domrectreadonly title=DOMRectReadOnly>DOMRectReadOnly</a> object by an attribute or function may be able to modify internal member variable values. Such an interface must specify this ability explicitly in prose.</p>

<p>Internal member variables must not be exposed in any way.</p>

<p>The <dfn class=idl-code data-dfn-for=DOMRect data-dfn-type=constructor data-export="" id=dom-domrect-domrectreadonly title=DOMRectReadOnly()><code>DOMRectReadOnly(<var>x</var>, <var>y</var>, <var>width</var>, <var>height</var>)</code><a class=self-link href=#dom-domrect-domrectreadonly></a></dfn> constructor, when invoked, must run the following steps:</p>

<ol class=algorithm>
  <li>Set the the current object’s variables <a data-link-for=rectangle data-link-type=dfn href=#x-coordinate0 title="x coordinate">x coordinate</a> to <var>x</var>, <a data-link-for=rectangle data-link-type=dfn href=#y-coordinate0 title="y coordinate">y coordinate</a> to <var>y</var>, <a data-link-type=dfn href=#width-dimension title="width dimension">width dimension</a> to <var>width</var> and <a data-link-type=dfn href=#height-dimension title="height dimension">height dimension</a> to <var>height</var>.
  <li>Return the new <a class=idl-code data-link-type=interface href=#dom-domrectreadonly title=DOMRectReadOnly>DOMRectReadOnly</a> object.
</ol>

<p>The <dfn class=idl-code data-dfn-for=DOMRect data-dfn-type=constructor data-export="" id=dom-domrect-domrect title=DOMRect()><code>DOMRect(<var>x</var>, <var>y</var>, <var>width</var>, <var>height</var>)</code><a class=self-link href=#dom-domrect-domrect></a></dfn> constructor, when invoked, must run the following steps:</p>

<ol class=algorithm>
  <li>Call the constructor of <a class=idl-code data-link-type=interface href=#dom-domrectreadonly title=DOMRectReadOnly>DOMRectReadOnly</a> with <var>x</var>, <var>y</var>, <var>width</var> and <var>height</var>.
  <li>Return the new <a class=idl-code data-link-type=interface href=#dom-domrect title=DOMRect>DOMRect</a> object.
</ol>

<div data-dfn-for="DOMRectReadOnly DOMRect" data-dfn-type=attribute>
  The <dfn class=idl-code data-dfn-for="DOMRectReadOnly DOMRect" data-dfn-type=attribute data-export="" id=dom-domrectreadonly-domrect-x>x<a class=self-link href=#dom-domrectreadonly-domrect-x></a></dfn> attribute, on getting, must return the <a data-link-for=rectangle data-link-type=dfn href=#x-coordinate0 title="x coordinate">x coordinate</a> value of the object it was invoked on. For the <a class=idl-code data-link-type=interface href=#dom-domrect title=DOMRect>DOMRect</a> interface, setting the <a class=idl-code data-link-for=DOMRect data-link-type=attribute href=#dom-domrectreadonly-domrect-x title=x>x</a> attribute must set the <a data-link-for=rectangle data-link-type=dfn href=#x-coordinate0 title="x coordinate">x coordinate</a> value of the object it was invoked on to the new value.

<p>The <dfn class=idl-code data-dfn-for="DOMRectReadOnly DOMRect" data-dfn-type=attribute data-export="" id=dom-domrectreadonly-domrect-y>y<a class=self-link href=#dom-domrectreadonly-domrect-y></a></dfn> attribute, on getting, it must return the <a data-link-for=rectangle data-link-type=dfn href=#y-coordinate0 title="y coordinate">y coordinate</a> value of the object it was invoked on. For the <a class=idl-code data-link-type=interface href=#dom-domrect title=DOMRect>DOMRect</a> interface, setting the <a class=idl-code data-link-for=DOMRect data-link-type=attribute href=#dom-domrectreadonly-domrect-y title=y>y</a> attribute must set the <a data-link-for=rectangle data-link-type=dfn href=#y-coordinate0 title="y coordinate">y coordinate</a> value of the object it was invoked on to the new value.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMRectReadOnly DOMRect" data-dfn-type=attribute data-export="" id=dom-domrectreadonly-domrect-width>width<a class=self-link href=#dom-domrectreadonly-domrect-width></a></dfn> attribute, on getting, must return the <a data-link-type=dfn href=http://www.w3.org/TR/css-writing-modes-3/#width title=width>width</a> value of the object it was invoked on. For the <a class=idl-code data-link-type=interface href=#dom-domrect title=DOMRect>DOMRect</a> interface, setting the <a class=idl-code data-link-for=DOMRect data-link-type=attribute href=#dom-domrectreadonly-domrect-width title=width>width</a> attribute must set the <a data-link-type=dfn href=#width-dimension title="width dimension">width dimension</a> value of the object it was invoked on to the new value.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMRectReadOnly DOMRect" data-dfn-type=attribute data-export="" id=dom-domrectreadonly-domrect-height>height<a class=self-link href=#dom-domrectreadonly-domrect-height></a></dfn> attribute, on getting, must return the <a data-link-type=dfn href=http://www.w3.org/TR/css-writing-modes-3/#height title=height>height</a> value. For the <a class=idl-code data-link-type=interface href=#dom-domrect title=DOMRect>DOMRect</a> interface, setting the <a class=idl-code data-link-for=DOMRect data-link-type=attribute href=#dom-domrectreadonly-domrect-height title=height>height</a> attribute must set the <a data-link-type=dfn href=#height-dimension title="height dimension">height dimension</a> value to the new value.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMRectReadOnly DOMRect" data-dfn-type=attribute data-export="" id=dom-domrectreadonly-domrect-top>top<a class=self-link href=#dom-domrectreadonly-domrect-top></a></dfn> attribute, on getting, must return min(<a data-link-for=rectangle data-link-type=dfn href=#y-coordinate0 title="y coordinate">y coordinate</a>, <a data-link-for=rectangle data-link-type=dfn href=#y-coordinate0 title="y coordinate">y coordinate</a> + <a data-link-type=dfn href=#height-dimension title="height dimension">height dimension</a>) of the object it was invoked on.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMRectReadOnly DOMRect" data-dfn-type=attribute data-export="" id=dom-domrectreadonly-domrect-right>right<a class=self-link href=#dom-domrectreadonly-domrect-right></a></dfn> attribute, on getting, must return max(<a data-link-for=rectangle data-link-type=dfn href=#x-coordinate0 title="x coordinate">x coordinate</a>, <a data-link-for=rectangle data-link-type=dfn href=#x-coordinate0 title="x coordinate">x coordinate</a> + <a data-link-type=dfn href=#width-dimension title="width dimension">width dimension</a>) of the object it was invoked on.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMRectReadOnly DOMRect" data-dfn-type=attribute data-export="" id=dom-domrectreadonly-domrect-bottom>bottom<a class=self-link href=#dom-domrectreadonly-domrect-bottom></a></dfn> attribute, on getting, must return max(<a data-link-for=rectangle data-link-type=dfn href=#y-coordinate0 title="y coordinate">y coordinate</a>, <a data-link-for=rectangle data-link-type=dfn href=#y-coordinate0 title="y coordinate">y coordinate</a> + <a data-link-type=dfn href=#height-dimension title="height dimension">height dimension</a>) of the object it was invoked on.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMRectReadOnly DOMRect" data-dfn-type=attribute data-export="" id=dom-domrectreadonly-domrect-left>left<a class=self-link href=#dom-domrectreadonly-domrect-left></a></dfn> attribute, on getting, must return min(<a data-link-for=rectangle data-link-type=dfn href=#x-coordinate0 title="x coordinate">x coordinate</a>, <a data-link-for=rectangle data-link-type=dfn href=#x-coordinate0 title="x coordinate">x coordinate</a> + <a data-link-type=dfn href=#width-dimension title="width dimension">width dimension</a>) of the object it was invoked on.</p>
</div>

<p>For historical reasons, Window objects must also have a writable, configurable, non-enumerable property named <dfn class=idl-code data-dfn-type=interface data-export="" id=dom-svgrect>SVGRect<a class=self-link href=#dom-svgrect></a></dfn> whose value is the <a class=idl-code data-link-type=interface href=#dom-domrect title=DOMRect>DOMRect</a> interface object.</p>

<h2 class="heading settled" data-level=4 id=DOMRectList><span class=secno>4. </span><span class=content>
The DOMRectList Interface</span><a class=self-link href=#DOMRectList></a></h2>

<pre class=idl>[NoInterfaceObject,
 ArrayClass]
interface <dfn class=idl-code data-dfn-type=interface data-export="" data-global-name="" id=dom-domrectlist>DOMRectList<a class=self-link href=#dom-domrectlist></a></dfn> {
    readonly attribute unsigned long <a class=idl-code data-global-name="DOMRectList<interface>/length<attribute>" data-link-for=DOMRectList data-link-type=attribute data-readonly="" data-type="unsigned long " href=#dom-domrectlist-length title=length>length</a>;
    getter <a data-link-type=idl-name href=#dom-domrect title=DOMRect>DOMRect</a>? <a class=idl-code data-global-name="DOMRectList<interface>/item()<method>" data-link-for=DOMRectList data-link-type=method href=#dom-domrectlist-item title=item()>item</a>(unsigned long <dfn class=idl-code data-dfn-for=DOMRectList/item() data-dfn-type=argument data-export="" data-global-name="DOMRectList<interface>/item()<method>/index<argument>" id=dom-domrectlist-item-index>index<a class=self-link href=#dom-domrectlist-item-index></a></dfn>);
};
</pre>

<p>The <dfn class=idl-code data-dfn-for=DOMRectList data-dfn-type=attribute data-export="" id=dom-domrectlist-length>length<a class=self-link href=#dom-domrectlist-length></a></dfn> attribute must return the total number of <a class=idl-code data-link-type=interface href=#dom-domrect title=DOMRect>DOMRect</a> objects associated with the object.</p>

<p>The <dfn class=idl-code data-dfn-for=DOMRectList data-dfn-type=method data-export="" id=dom-domrectlist-item title=item()>item(<var>index</var>)<a class=self-link href=#dom-domrectlist-item></a></dfn> method, when invoked, must return a <span class=css>null</span> value when <var>index</var> is greater than or equal to the number of <a class=idl-code data-link-type=interface href=#dom-domrect title=DOMRect>DOMRect</a> objects associated with the <a class=idl-code data-link-type=interface href=#dom-domrectlist title=DOMRectList>DOMRectList</a>. Otherwise, the <a class=idl-code data-link-type=interface href=#dom-domrect title=DOMRect>DOMRect</a> object at <var>index</var> must be returned. Indices are zero-based.</p>

<strong class=advisement><a class=idl-code data-link-type=interface href=#dom-domrectlist title=DOMRectList>DOMRectList</a> must be supported for legacy reasons. New interfaces must not use <a class=idl-code data-link-type=interface href=#dom-domrectlist title=DOMRectList>DOMRectList</a> and may use Sequences <a data-biblio-type=normative data-link-type=biblio href=#biblio-webidl title=WEBIDL>[WEBIDL]</a> instead.</strong>

<h2 class="heading settled" data-level=5 id=DOMQuad><span class=secno>5. </span><span class=content>
The DOMQuad interface</span><a class=self-link href=#DOMQuad></a></h2>

<p>Objects implementing the <a class=idl-code data-link-type=interface href=#dom-domquad title=DOMQuad>DOMQuad</a> interface represents a <dfn data-dfn-type=dfn data-noexport="" id=quadrilateral>quadrilateral<a class=self-link href=#quadrilateral></a></dfn>.</p>

<pre class=idl>[Constructor(optional <a data-link-type=idl-name href=#dictdef-dompointinit title=DOMPointInit>DOMPointInit</a> <dfn class=idl-code data-dfn-for=DOMQuad/DOMQuad() data-dfn-type=argument data-export="" data-global-name="DOMQuad<interface>/DOMQuad()<method>/p1<argument>" id=dom-domquad-domquad-p1>p1<a class=self-link href=#dom-domquad-domquad-p1></a></dfn>, optional <a data-link-type=idl-name href=#dictdef-dompointinit title=DOMPointInit>DOMPointInit</a> <dfn class=idl-code data-dfn-for=DOMQuad/DOMQuad() data-dfn-type=argument data-export="" data-global-name="DOMQuad<interface>/DOMQuad()<method>/p2<argument>" id=dom-domquad-domquad-p2>p2<a class=self-link href=#dom-domquad-domquad-p2></a></dfn>,
             optional <a data-link-type=idl-name href=#dictdef-dompointinit title=DOMPointInit>DOMPointInit</a> <dfn class=idl-code data-dfn-for=DOMQuad/DOMQuad() data-dfn-type=argument data-export="" data-global-name="DOMQuad<interface>/DOMQuad()<method>/p3<argument>" id=dom-domquad-domquad-p3>p3<a class=self-link href=#dom-domquad-domquad-p3></a></dfn>, optional <a data-link-type=idl-name href=#dictdef-dompointinit title=DOMPointInit>DOMPointInit</a> <dfn class=idl-code data-dfn-for=DOMQuad/DOMQuad() data-dfn-type=argument data-export="" data-global-name="DOMQuad<interface>/DOMQuad()<method>/p4<argument>" id=dom-domquad-domquad-p4>p4<a class=self-link href=#dom-domquad-domquad-p4></a></dfn>),
 Constructor(optional <a data-link-type=idl-name href=#dictdef-domrectinit title=DOMRectInit>DOMRectInit</a> <dfn class=idl-code data-dfn-for=DOMQuad/DOMQuad() data-dfn-type=argument data-export="" data-global-name="DOMQuad<interface>/DOMQuad()<method>/rect<argument>" id=dom-domquad-domquad-rect>rect<a class=self-link href=#dom-domquad-domquad-rect></a></dfn>),
 Exposed=(Window,Worker)]
interface <dfn class=idl-code data-dfn-type=interface data-export="" data-global-name="" id=dom-domquad>DOMQuad<a class=self-link href=#dom-domquad></a></dfn> {
    [SameObject] readonly attribute <a data-link-type=idl-name href=#dom-dompoint title=DOMPoint>DOMPoint</a> <a class=idl-code data-global-name="DOMQuad<interface>/p1<attribute>" data-link-for=DOMQuad data-link-type=attribute data-readonly="" data-type="DOMPoint " href=#dom-domquad-p1 title=p1>p1</a>;
    [SameObject] readonly attribute <a data-link-type=idl-name href=#dom-dompoint title=DOMPoint>DOMPoint</a> <a class=idl-code data-global-name="DOMQuad<interface>/p2<attribute>" data-link-for=DOMQuad data-link-type=attribute data-readonly="" data-type="DOMPoint " href=#dom-domquad-p2 title=p2>p2</a>;
    [SameObject] readonly attribute <a data-link-type=idl-name href=#dom-dompoint title=DOMPoint>DOMPoint</a> <a class=idl-code data-global-name="DOMQuad<interface>/p3<attribute>" data-link-for=DOMQuad data-link-type=attribute data-readonly="" data-type="DOMPoint " href=#dom-domquad-p3 title=p3>p3</a>;
    [SameObject] readonly attribute <a data-link-type=idl-name href=#dom-dompoint title=DOMPoint>DOMPoint</a> <a class=idl-code data-global-name="DOMQuad<interface>/p4<attribute>" data-link-for=DOMQuad data-link-type=attribute data-readonly="" data-type="DOMPoint " href=#dom-domquad-p4 title=p4>p4</a>;
    [SameObject] readonly attribute <a data-link-type=idl-name href=#dom-domrectreadonly title=DOMRectReadOnly>DOMRectReadOnly</a> <a class=idl-code data-global-name="DOMQuad<interface>/bounds<attribute>" data-link-for=DOMQuad data-link-type=attribute data-readonly="" data-type="DOMRectReadOnly " href=#dom-domquad-bounds title=bounds>bounds</a>;
};
</pre>

<p>The <dfn class=idl-code data-dfn-for=DOMQuad data-dfn-type=constructor data-export="" id=dom-domquad-domquad><code>DOMQuad()</code><a class=self-link href=#dom-domquad-domquad></a></dfn> constructor, when invoked, must run the following steps:

<dl class=switch>
  <dt>If invoked with one argument</dt>
  <dd>
    <ol class=algorithm>
      <li>Let <var>rect</var> be the argument.
      <li>Let <var>x</var>, <var>y</var>, <var>width</var> and <var>height</var> be the value of <var>rect</var>’s <a class=idl-code data-link-for=DOMRectReadOnly data-link-type=attribute href=#dom-domrectreadonly-domrect-x title=x>x</a>, <a class=idl-code data-link-for=DOMRectReadOnly data-link-type=attribute href=#dom-domrectreadonly-domrect-y title=y>y</a>, <a class=idl-code data-link-for=DOMRectReadOnly data-link-type=attribute href=#dom-domrectreadonly-domrect-width title=width>width</a> and <a class=idl-code data-link-for=DOMRectReadOnly data-link-type=attribute href=#dom-domrectreadonly-domrect-height title=height>height</a> attributes, respectively.
      <li>Let <var>point 1</var> be a new <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> object with <a class=idl-code data-link-for=DOMPoint data-link-type=attribute href=#dom-dompointreadonly-dompoint-x title=x>x</a> set to <var>x</var>, <a class=idl-code data-link-for=DOMPoint data-link-type=attribute href=#dom-dompointreadonly-dompoint-y title=y>y</a> set to <var>y</var>, <a class=idl-code data-link-for=DOMPoint data-link-type=attribute href=#dom-dompointreadonly-dompoint-z title=z>z</a> set to zero and <a class=idl-code data-link-for=DOMPoint data-link-type=attribute href=#dom-dompointreadonly-dompoint-w title=w>w</a> set to one.
      <li>Let <var>point 2</var> be a new <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> object with <a class=idl-code data-link-for=DOMPoint data-link-type=attribute href=#dom-dompointreadonly-dompoint-x title=x>x</a> set to <var>x</var> + <var>width</var>, <a class=idl-code data-link-for=DOMPoint data-link-type=attribute href=#dom-dompointreadonly-dompoint-y title=y>y</a> set to <var>y</var>, <a class=idl-code data-link-for=DOMPoint data-link-type=attribute href=#dom-dompointreadonly-dompoint-z title=z>z</a> set to zero and <a class=idl-code data-link-for=DOMPoint data-link-type=attribute href=#dom-dompointreadonly-dompoint-w title=w>w</a> set to one.
      <li>Let <var>point 3</var> be a new <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> object with <a class=idl-code data-link-for=DOMPoint data-link-type=attribute href=#dom-dompointreadonly-dompoint-x title=x>x</a> set to <var>x</var> + <var>width</var>, <a class=idl-code data-link-for=DOMPoint data-link-type=attribute href=#dom-dompointreadonly-dompoint-y title=y>y</a> set to <var>y</var> + <var>height</var>, <a class=idl-code data-link-for=DOMPoint data-link-type=attribute href=#dom-dompointreadonly-dompoint-z title=z>z</a> set to zero and <a class=idl-code data-link-for=DOMPoint data-link-type=attribute href=#dom-dompointreadonly-dompoint-w title=w>w</a> set to one.
      <li>Let <var>point 4</var> be a new <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> object with <a class=idl-code data-link-for=DOMPoint data-link-type=attribute href=#dom-dompointreadonly-dompoint-x title=x>x</a> set to <var>x</var>, <a class=idl-code data-link-for=DOMPoint data-link-type=attribute href=#dom-dompointreadonly-dompoint-y title=y>y</a> set to <var>y</var> + <var>height</var>, <a class=idl-code data-link-for=DOMPoint data-link-type=attribute href=#dom-dompointreadonly-dompoint-z title=z>z</a> set to zero and <a class=idl-code data-link-for=DOMPoint data-link-type=attribute href=#dom-dompointreadonly-dompoint-w title=w>w</a> set to one.
      <li><p>Return a new <a class=idl-code data-link-type=interface href=#dom-domquad title=DOMQuad>DOMQuad</a> with <a class=idl-code data-link-for=DOMQuad data-link-type=attribute href=#dom-domquad-p1 title=p1>p1</a> set to <var>point 1</var>, <a class=idl-code data-link-for=DOMQuad data-link-type=attribute href=#dom-domquad-p2 title=p2>p2</a> set to <var>point 2</var>, <a class=idl-code data-link-for=DOMQuad data-link-type=attribute href=#dom-domquad-p3 title=p3>p3</a> set to <var>point 3</var> and <a class=idl-code data-link-for=DOMQuad data-link-type=attribute href=#dom-domquad-p4 title=p4>p4</a> set to <var>point 4</var>, and let the <a data-link-type=dfn href=#associated-bounding-rectangle title="associated bounding rectangle">associated bounding rectangle</a> be <var>bounds</var>.
    </ol>
  </dd>
  <dt>Otherwise</dt>
  <dd>
    <ol class=algorithm>
      <li>Let <var>p1</var>, <var>p2</var>, <var>p3</var> and <var>p4</var> be the given arguments, in the same order.
      <li>Let <var>point 1</var> be a new <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> object with its attributes set to the values of the namesake dictionary members in <var>p1</var>.
      <li>Let <var>point 2</var> be a new <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> object with its attributes set to the values of the namesake dictionary members in <var>p2</var>.
      <li>Let <var>point 3</var> be a new <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> object with its attributes set to the values of the namesake dictionary members in <var>p3</var>.
      <li>Let <var>point 4</var> be a new <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> object with its attributes set to the values of the namesake dictionary members in <var>p4</var>.
      <li><p>Return a new <a class=idl-code data-link-type=interface href=#dom-domquad title=DOMQuad>DOMQuad</a> with <a class=idl-code data-link-for=DOMQuad data-link-type=attribute href=#dom-domquad-p1 title=p1>p1</a> set to <var>point 1</var>, <a class=idl-code data-link-for=DOMQuad data-link-type=attribute href=#dom-domquad-p2 title=p2>p2</a> set to <var>point 2</var>, <a class=idl-code data-link-for=DOMQuad data-link-type=attribute href=#dom-domquad-p3 title=p3>p3</a> set to <var>point 3</var> and <a class=idl-code data-link-for=DOMQuad data-link-type=attribute href=#dom-domquad-p4 title=p4>p4</a> set to <var>point 4</var>, and let the <a data-link-type=dfn href=#associated-bounding-rectangle title="associated bounding rectangle">associated bounding rectangle</a> be <var>bounds</var>.
    </ol>
    <p class=note>Note: It is possible to pass <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a>/<a class=idl-code data-link-type=interface href=#dom-dompointreadonly title=DOMPointReadOnly>DOMPointReadOnly</a> arguments as well. The passed arguments will be transformed to the correct object type internally following the WebIDL rules <a data-biblio-type=normative data-link-type=biblio href=#biblio-webidl title=WEBIDL>[WEBIDL]</a>.
  </dd>
</dl>

<div data-dfn-for=DOMQuad data-dfn-type=attribute>
 The <dfn class=idl-code data-dfn-for=DOMQuad data-dfn-type=attribute data-export="" id=dom-domquad-p1>p1<a class=self-link href=#dom-domquad-p1></a></dfn> attribute must return a <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> that represents <a class=idl-code data-link-type=attribute href=#dom-domquad-p1 title=p1>p1</a> of the quadrilateral it was invoked on. The author can modify the returned <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> object, which directly affects the quadrilateral.

<p>The <dfn class=idl-code data-dfn-for=DOMQuad data-dfn-type=attribute data-export="" id=dom-domquad-p2>p2<a class=self-link href=#dom-domquad-p2></a></dfn> attribute must return a <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> that represents <a class=idl-code data-link-type=attribute href=#dom-domquad-p2 title=p2>p2</a> of the quadrilateral it was invoked on. The author can modify the returned <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> object, which directly affects the quadrilateral.</p>

<p>The <dfn class=idl-code data-dfn-for=DOMQuad data-dfn-type=attribute data-export="" id=dom-domquad-p3>p3<a class=self-link href=#dom-domquad-p3></a></dfn> attribute must return a <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> that represents <a class=idl-code data-link-type=attribute href=#dom-domquad-p3 title=p3>p3</a> of the quadrilateral it was invoked on. The author can modify the returned <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> object, which directly affects the quadrilateral.</p>

<p>The <dfn class=idl-code data-dfn-for=DOMQuad data-dfn-type=attribute data-export="" id=dom-domquad-p4>p4<a class=self-link href=#dom-domquad-p4></a></dfn> attribute must return a <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> that represents <a class=idl-code data-link-type=attribute href=#dom-domquad-p4 title=p4>p4</a> of the quadrilateral it was invoked on. The author can modify the returned <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> object, which directly affects the quadrilateral.</p>

<p>The <dfn class=idl-code data-dfn-for=DOMQuad data-dfn-type=attribute data-export="" id=dom-domquad-bounds>bounds<a class=self-link href=#dom-domquad-bounds></a></dfn> attribute must return the <a data-link-type=dfn href=#associated-bounding-rectangle title="associated bounding rectangle">associated bounding rectangle</a> of the quadrilateral it was invoked on.</p>
</div>

<p><a class=idl-code data-link-type=interface href=#dom-domquad title=DOMQuad>DOMQuad</a> objects have an <dfn data-dfn-for=quadlirateral data-dfn-type=dfn data-noexport="" id=associated-bounding-rectangle>associated bounding rectangle<a class=self-link href=#associated-bounding-rectangle></a></dfn> set to a <a class=idl-code data-link-type=interface href=#dom-domrectreadonly title=DOMRectReadOnly>DOMRectReadOnly</a> object when created. <a class=idl-code data-link-type=interface href=#dom-domquad title=DOMQuad>DOMQuad</a> objects must have read and write access to the internal member variables of the <a data-link-type=dfn href=#associated-bounding-rectangle title="associated bounding rectangle">associated bounding rectangle</a>. The <a data-link-type=dfn href=#associated-bounding-rectangle title="associated bounding rectangle">associated bounding rectangle</a> is live; whenever the objects for <a class=idl-code data-link-type=attribute href=#dom-domquad-p1 title=p1>p1</a>, <a class=idl-code data-link-type=attribute href=#dom-domquad-p2 title=p2>p2</a>, <a class=idl-code data-link-type=attribute href=#dom-domquad-p3 title=p3>p3</a> or <a class=idl-code data-link-type=attribute href=#dom-domquad-p4 title=p4>p4</a> change, the <a data-link-type=dfn href=#associated-bounding-rectangle title="associated bounding rectangle">associated bounding rectangle</a> must update its internal member variable values as appropriate to describe the new smallest bounding box of the four points.</p>

<p>The <a data-link-type=dfn href=#associated-bounding-rectangle title="associated bounding rectangle">associated bounding rectangle</a> is computed as follows:</p>
<ol class=algorithm>
  <li>Let <var>bounds</var> be a <a class=idl-code data-link-type=interface href=#dom-domrectreadonly title=DOMRectReadOnly>DOMRectReadOnly</a> object.</li>
  <li>Let <var>left</var> be the minimum of <a class=idl-code data-link-type=attribute href=#dom-domquad-p1 title=p1>p1</a>.x, <a class=idl-code data-link-type=attribute href=#dom-domquad-p2 title=p2>p2</a>.x, <a class=idl-code data-link-type=attribute href=#dom-domquad-p3 title=p3>p3</a>.x and <a class=idl-code data-link-type=attribute href=#dom-domquad-p4 title=p4>p4</a>.x.</li>
  <li>Let <var>top</var> be the minimum of <a class=idl-code data-link-type=attribute href=#dom-domquad-p1 title=p1>p1</a>.y, <a class=idl-code data-link-type=attribute href=#dom-domquad-p2 title=p2>p2</a>.y, <a class=idl-code data-link-type=attribute href=#dom-domquad-p3 title=p3>p3</a>.y and <a class=idl-code data-link-type=attribute href=#dom-domquad-p4 title=p4>p4</a>.y.</li>
  <li>Let <var>right</var> be the maximum of <a class=idl-code data-link-type=attribute href=#dom-domquad-p1 title=p1>p1</a>.x, <a class=idl-code data-link-type=attribute href=#dom-domquad-p2 title=p2>p2</a>.x, <a class=idl-code data-link-type=attribute href=#dom-domquad-p3 title=p3>p3</a>.x and <a class=idl-code data-link-type=attribute href=#dom-domquad-p4 title=p4>p4</a>.x.</li>
  <li>Let <var>bottom</var> be the maximum of <a class=idl-code data-link-type=attribute href=#dom-domquad-p1 title=p1>p1</a>.y, <a class=idl-code data-link-type=attribute href=#dom-domquad-p2 title=p2>p2</a>.y, <a class=idl-code data-link-type=attribute href=#dom-domquad-p3 title=p3>p3</a>.y and <a class=idl-code data-link-type=attribute href=#dom-domquad-p4 title=p4>p4</a>.y.</li>
  <li>Let <a data-link-for=rectangle data-link-type=dfn href=#x-coordinate0 title="x coordinate">x coordinate</a> of <var>bounds</var> be <var>left</var>, <a data-link-for=rectangle data-link-type=dfn href=#y-coordinate0 title="y coordinate">y coordinate</a> of <var>bounds</var> be <var>top</var>, <a data-link-type=dfn href=#width-dimension title="width dimension">width dimension</a> of <var>bounds</var> be <var>right</var> - <var>left</var> and <a data-link-type=dfn href=#height-dimension title="height dimension">height dimension</a> of <var>bounds</var> be <var>bottom</var> - <var>top</var>.</li>
</ol>

<div class=example>
<p>In this example the <a class=idl-code data-link-type=interface href=#dom-domquad title=DOMQuad>DOMQuad</a> constructor is called with arguments of type <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> and <a class=idl-code data-link-type=dictionary href=#dictdef-dompointinit title=DOMPointInit>DOMPointInit</a>. Both arguments are accepted and can be used.
<pre><code>var point = new DOMPoint(2, 0);
var quad1 = new DOMQuad(point, {x: 12, y: 0}, {x: 2, y: 10}, {x: 12, y: 10});</code></pre>
<p>The attribute values of the resulting <a class=idl-code data-link-type=interface href=#dom-domquad title=DOMQuad>DOMQuad</a> <var>quad1</var> above are also equal to the attribute values of the following <a class=idl-code data-link-type=interface href=#dom-domquad title=DOMQuad>DOMQuad</a> <var>quad2</var>:</p>
<pre><code>var rect = new DOMRect(2, 0, 10, 10);
var quad2 = new DOMQuad(rect);</code></pre>
</div>
<div class=example>
<p>This is an example of an irregular quadrilateral:</p>
<pre><code>new DOMQuad({x: 40, y: 25}, {x: 180, y: 8}, {x: 210, y: 150}, {x: 10, y: 180});
</code></pre>
<div class=figure>
  <svg height=200 width=230>
    <title>An irregular quadrilateral with none of the sides being vertical or horizontal. Its four corners are marked with red circles. Around this quadrilateral is a dashed rectangle. All sides of this rectangle are vertical or horizontal and tangent the quadrilateral.</title>
    <polygon fill="rgb(51, 153, 204)" points="40 25, 180 8, 210 150, 10 180"></polygon>
    <rect fill=none height=172 stroke=black stroke-dasharray="3 2" width=200 x=10 y=8></rect>
    <circle cx=40 cy=25 fill="rgb(204, 51, 51)" r=3></circle>
    <circle cx=180 cy=8 fill="rgb(204, 51, 51)" r=3></circle>
    <circle cx=210 cy=150 fill="rgb(204, 51, 51)" r=3></circle>
    <circle cx=10 cy=180 fill="rgb(204, 51, 51)" r=3></circle>
  </svg>
  <p class=capture>An irregular quadrilateral represented by a <a class=idl-code data-link-type=interface href=#dom-domquad title=DOMQuad>DOMQuad</a>. The four red colored circles represent the <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a> attributes <a class=idl-code data-link-type=attribute href=#dom-domquad-p1 title=p1>p1</a> to <a class=idl-code data-link-type=attribute href=#dom-domquad-p4 title=p4>p4</a>. The dashed rectangle represents the <a data-link-type=dfn href=#associated-bounding-rectangle title="associated bounding rectangle">associated bounding rectangle</a> <a class=idl-code data-link-type=attribute href=#dom-domquad-bounds title=bounds>bounds</a> of the <a class=idl-code data-link-type=interface href=#dom-domquad title=DOMQuad>DOMQuad</a>.</p>
</div>
</div>

<h2 class="heading settled" data-level=6 id=DOMMatrix><span class=secno>6. </span><span class=content>
The DOMMatrix interfaces</span><a class=self-link href=#DOMMatrix></a></h2>

<p>The <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> and <a class=idl-code data-link-type=interface href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> interfaces each represent a mathematical <dfn data-dfn-type=dfn data-noexport="" id=matrix>matrix<a class=self-link href=#matrix></a></dfn> with the purpose of describing transformations in a graphical context. The following sections describe the details of the interface.</p>

<div class=figure>
  
  <math display=block><mrow><mfenced close=] open=[ separators=,><mrow><mtable><mtr><mtd><msub><mi>m</mi><mi>11</mi></msub></mtd><mtd><msub><mi>m</mi><mi>21</mi></msub></mtd><mtd><msub><mi>m</mi><mi>31</mi></msub></mtd><mtd><msub><mi>m</mi><mi>41</mi></msub></mtd></mtr><mtr><mtd><msub><mi>m</mi><mi>12</mi></msub></mtd><mtd><msub><mi>m</mi><mi>22</mi></msub></mtd><mtd><msub><mi>m</mi><mi>32</mi></msub></mtd><mtd><msub><mi>m</mi><mi>42</mi></msub></mtd></mtr><mtr><mtd><msub><mi>m</mi><mi>13</mi></msub></mtd><mtd><msub><mi>m</mi><mi>23</mi></msub></mtd><mtd><msub><mi>m</mi><mi>33</mi></msub></mtd><mtd><msub><mi>m</mi><mi>43</mi></msub></mtd></mtr><mtr><mtd><msub><mi>m</mi><mi>14</mi></msub></mtd><mtd><msub><mi>m</mi><mi>24</mi></msub></mtd><mtd><msub><mi>m</mi><mi>34</mi></msub></mtd><mtd><msub><mi>m</mi><mi>44</mi></msub></mtd></mtr></mtable></mrow></mfenced></mrow></math>
  <p class=capture>A 4x4 matrix representing a <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> with items m11 to m44.</p>
</div>

<p>In the following sections, terms have the following meaning:</p>

<dl>
  <dt><dfn data-dfn-type=dfn data-noexport="" id=post-multiply>post-multiply<a class=self-link href=#post-multiply></a></dfn></dt>
  <dd>
    Term A post-multiplied by term B is equal to A · B.
  </dd>
  <dt><dfn data-dfn-type=dfn data-noexport="" id=pre-multiply>pre-multiply<a class=self-link href=#pre-multiply></a></dfn></dt>
  <dd>
    Term A pre-multiplied by term B is equal to B · A.
  </dd>
  <dt><dfn data-dfn-type=dfn data-noexport="" id=multiply>multiply<a class=self-link href=#multiply></a></dfn></dt>
  <dd>
    Multiply term A by term B is equal to A · B.
  </dd>
</dl>

<pre class=idl>[Constructor(sequence&lt;unrestricted double&gt; <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/DOMMatrixReadOnly() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/DOMMatrixReadOnly()<method>/numbersequence<argument>" id=dom-dommatrixreadonly-dommatrixreadonly-numbersequence>numberSequence<a class=self-link href=#dom-dommatrixreadonly-dommatrixreadonly-numbersequence></a></dfn>),
 Exposed=(Window,Worker)]
interface <dfn class=idl-code data-dfn-type=interface data-export="" data-global-name="" id=dom-dommatrixreadonly>DOMMatrixReadOnly<a class=self-link href=#dom-dommatrixreadonly></a></dfn> {
    // These attributes are simple aliases for certain elements of the 4x4 matrix
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/a<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-a title=a>a</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/b<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-b title=b>b</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/c<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-c title=c>c</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/d<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-d title=d>d</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/e<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-e title=e>e</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/f<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-f title=f>f</a>;

    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m11<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m11 title=m11>m11</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m12<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m12 title=m12>m12</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m13<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m13 title=m13>m13</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m14<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m14 title=m14>m14</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m21<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m21 title=m21>m21</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m22<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m22 title=m22>m22</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m23<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m23 title=m23>m23</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m24<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m24 title=m24>m24</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m31<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m31 title=m31>m31</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m32<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m32 title=m32>m32</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m33<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m33 title=m33>m33</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m34<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m34 title=m34>m34</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m41<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m41 title=m41>m41</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m42<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m42 title=m42>m42</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m43<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m43 title=m43>m43</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m44<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m44 title=m44>m44</a>;

    readonly attribute boolean <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/is2d<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="boolean " href=#dom-dommatrixreadonly-is2d title=is2D>is2D</a>;
    readonly attribute boolean <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/isidentity<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="boolean " href=#dom-dommatrixreadonly-isidentity title=isIdentity>isIdentity</a>;

    // Immutable transform methods
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/translate()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-translate title=translate()>translate</a>(unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/translate() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/translate()<method>/tx<argument>" id=dom-dommatrixreadonly-translate-tx>tx<a class=self-link href=#dom-dommatrixreadonly-translate-tx></a></dfn>,
                        unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/translate() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/translate()<method>/ty<argument>" id=dom-dommatrixreadonly-translate-ty>ty<a class=self-link href=#dom-dommatrixreadonly-translate-ty></a></dfn>,
                        optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/translate() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/translate()<method>/tz<argument>" id=dom-dommatrixreadonly-translate-tz>tz<a class=self-link href=#dom-dommatrixreadonly-translate-tz></a></dfn> = 0);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/scale()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-scale title=scale()>scale</a>(unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/scale() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scale()<method>/scale<argument>" id=dom-dommatrixreadonly-scale-scale>scale<a class=self-link href=#dom-dommatrixreadonly-scale-scale></a></dfn>,
                    optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/scale() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scale()<method>/originx<argument>" id=dom-dommatrixreadonly-scale-originx>originX<a class=self-link href=#dom-dommatrixreadonly-scale-originx></a></dfn> = 0,
                    optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/scale() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scale()<method>/originy<argument>" id=dom-dommatrixreadonly-scale-originy>originY<a class=self-link href=#dom-dommatrixreadonly-scale-originy></a></dfn> = 0);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/scale3d()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-scale3d title=scale3d()>scale3d</a>(unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/scale3d() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scale3d()<method>/scale<argument>" id=dom-dommatrixreadonly-scale3d-scale>scale<a class=self-link href=#dom-dommatrixreadonly-scale3d-scale></a></dfn>,
                      optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/scale3d() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scale3d()<method>/originx<argument>" id=dom-dommatrixreadonly-scale3d-originx>originX<a class=self-link href=#dom-dommatrixreadonly-scale3d-originx></a></dfn> = 0,
                      optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/scale3d() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scale3d()<method>/originy<argument>" id=dom-dommatrixreadonly-scale3d-originy>originY<a class=self-link href=#dom-dommatrixreadonly-scale3d-originy></a></dfn> = 0,
                      optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/scale3d() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scale3d()<method>/originz<argument>" id=dom-dommatrixreadonly-scale3d-originz>originZ<a class=self-link href=#dom-dommatrixreadonly-scale3d-originz></a></dfn> = 0);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/scalenonuniform()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-scalenonuniform title=scaleNonUniform()>scaleNonUniform</a>(unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/scaleNonUniform() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scaleNonUniform()<method>/scalex<argument>" id=dom-dommatrixreadonly-scalenonuniform-scalex>scaleX<a class=self-link href=#dom-dommatrixreadonly-scalenonuniform-scalex></a></dfn>,
                              optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/scaleNonUniform() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scaleNonUniform()<method>/scaley<argument>" id=dom-dommatrixreadonly-scalenonuniform-scaley>scaleY<a class=self-link href=#dom-dommatrixreadonly-scalenonuniform-scaley></a></dfn> = 1,
                              optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/scaleNonUniform() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scaleNonUniform()<method>/scalez<argument>" id=dom-dommatrixreadonly-scalenonuniform-scalez>scaleZ<a class=self-link href=#dom-dommatrixreadonly-scalenonuniform-scalez></a></dfn> = 1,
                              optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/scaleNonUniform() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scaleNonUniform()<method>/originx<argument>" id=dom-dommatrixreadonly-scalenonuniform-originx>originX<a class=self-link href=#dom-dommatrixreadonly-scalenonuniform-originx></a></dfn> = 0,
                              optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/scaleNonUniform() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scaleNonUniform()<method>/originy<argument>" id=dom-dommatrixreadonly-scalenonuniform-originy>originY<a class=self-link href=#dom-dommatrixreadonly-scalenonuniform-originy></a></dfn> = 0,
                              optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/scaleNonUniform() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scaleNonUniform()<method>/originz<argument>" id=dom-dommatrixreadonly-scalenonuniform-originz>originZ<a class=self-link href=#dom-dommatrixreadonly-scalenonuniform-originz></a></dfn> = 0);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/rotate()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-rotate title=rotate()>rotate</a>(unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/rotate() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/rotate()<method>/angle<argument>" id=dom-dommatrixreadonly-rotate-angle>angle<a class=self-link href=#dom-dommatrixreadonly-rotate-angle></a></dfn>,
                     optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/rotate() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/rotate()<method>/originx<argument>" id=dom-dommatrixreadonly-rotate-originx>originX<a class=self-link href=#dom-dommatrixreadonly-rotate-originx></a></dfn> = 0,
                     optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/rotate() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/rotate()<method>/originy<argument>" id=dom-dommatrixreadonly-rotate-originy>originY<a class=self-link href=#dom-dommatrixreadonly-rotate-originy></a></dfn> = 0);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/rotatefromvector()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-rotatefromvector title=rotateFromVector()>rotateFromVector</a>(unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/rotateFromVector() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/rotateFromVector()<method>/x<argument>" id=dom-dommatrixreadonly-rotatefromvector-x>x<a class=self-link href=#dom-dommatrixreadonly-rotatefromvector-x></a></dfn>,
                               unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/rotateFromVector() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/rotateFromVector()<method>/y<argument>" id=dom-dommatrixreadonly-rotatefromvector-y>y<a class=self-link href=#dom-dommatrixreadonly-rotatefromvector-y></a></dfn>);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/rotateaxisangle()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-rotateaxisangle title=rotateAxisAngle()>rotateAxisAngle</a>(unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/rotateAxisAngle() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/rotateAxisAngle()<method>/x<argument>" id=dom-dommatrixreadonly-rotateaxisangle-x>x<a class=self-link href=#dom-dommatrixreadonly-rotateaxisangle-x></a></dfn>,
                              unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/rotateAxisAngle() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/rotateAxisAngle()<method>/y<argument>" id=dom-dommatrixreadonly-rotateaxisangle-y>y<a class=self-link href=#dom-dommatrixreadonly-rotateaxisangle-y></a></dfn>,
                              unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/rotateAxisAngle() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/rotateAxisAngle()<method>/z<argument>" id=dom-dommatrixreadonly-rotateaxisangle-z>z<a class=self-link href=#dom-dommatrixreadonly-rotateaxisangle-z></a></dfn>,
                              unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/rotateAxisAngle() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/rotateAxisAngle()<method>/angle<argument>" id=dom-dommatrixreadonly-rotateaxisangle-angle>angle<a class=self-link href=#dom-dommatrixreadonly-rotateaxisangle-angle></a></dfn>);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/skewx()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-skewx title=skewX()>skewX</a>(unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/skewX() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/skewX()<method>/sx<argument>" id=dom-dommatrixreadonly-skewx-sx>sx<a class=self-link href=#dom-dommatrixreadonly-skewx-sx></a></dfn>);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/skewy()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-skewy title=skewY()>skewY</a>(unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/skewY() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/skewY()<method>/sy<argument>" id=dom-dommatrixreadonly-skewy-sy>sy<a class=self-link href=#dom-dommatrixreadonly-skewy-sy></a></dfn>);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/multiply()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-multiply title=multiply()>multiply</a>(<a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/multiply() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/multiply()<method>/other<argument>" id=dom-dommatrixreadonly-multiply-other>other<a class=self-link href=#dom-dommatrixreadonly-multiply-other></a></dfn>);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/flipx()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-flipx title=flipX()>flipX</a>();
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/flipy()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-flipy title=flipY()>flipY</a>();
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/inverse()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-inverse title=inverse()>inverse</a>();

    <a data-link-type=idl-name href=#dom-dompoint title=DOMPoint>DOMPoint</a>            <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/transformpoint()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-transformpoint title=transformPoint()>transformPoint</a>(optional <a data-link-type=idl-name href=#dictdef-dompointinit title=DOMPointInit>DOMPointInit</a> <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly/transformPoint() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/transformPoint()<method>/point<argument>" id=dom-dommatrixreadonly-transformpoint-point>point<a class=self-link href=#dom-dommatrixreadonly-transformpoint-point></a></dfn>);
    Float32Array        <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/tofloat32array()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-tofloat32array title=toFloat32Array()>toFloat32Array</a>();
    Float64Array        <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/tofloat64array()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-tofloat64array title=toFloat64Array()>toFloat64Array</a>();
                        stringifier;
};

[Constructor,
 Constructor(DOMString <dfn class=idl-code data-dfn-for=DOMMatrix/DOMMatrix() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/DOMMatrix()<method>/transformlist<argument>" id=dom-dommatrix-dommatrix-transformlist>transformList<a class=self-link href=#dom-dommatrix-dommatrix-transformlist></a></dfn>),
 Constructor(<a data-link-type=idl-name href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> <dfn class=idl-code data-dfn-for=DOMMatrix/DOMMatrix() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/DOMMatrix()<method>/other<argument>" id=dom-dommatrix-dommatrix-other>other<a class=self-link href=#dom-dommatrix-dommatrix-other></a></dfn>),
 Constructor(Float32Array <dfn class=idl-code data-dfn-for=DOMMatrix/DOMMatrix() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/DOMMatrix()<method>/array32<argument>" id=dom-dommatrix-dommatrix-array32>array32<a class=self-link href=#dom-dommatrix-dommatrix-array32></a></dfn>),
 Constructor(Float64Array <dfn class=idl-code data-dfn-for=DOMMatrix/DOMMatrix() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/DOMMatrix()<method>/array64<argument>" id=dom-dommatrix-dommatrix-array64>array64<a class=self-link href=#dom-dommatrix-dommatrix-array64></a></dfn>),
 Constructor(sequence&lt;unrestricted double&gt; <dfn class=idl-code data-dfn-for=DOMMatrix/DOMMatrix() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/DOMMatrix()<method>/numbersequence<argument>" id=dom-dommatrix-dommatrix-numbersequence>numberSequence<a class=self-link href=#dom-dommatrix-dommatrix-numbersequence></a></dfn>),
 Exposed=(Window,Worker)]
interface <dfn class=idl-code data-dfn-type=interface data-export="" data-global-name="" id=dom-dommatrix>DOMMatrix<a class=self-link href=#dom-dommatrix></a></dfn> : <a data-link-type=idl-name href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> {
    // These attributes are simple aliases for certain elements of the 4x4 matrix
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/a<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-a title=a>a</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/b<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-b title=b>b</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/c<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-c title=c>c</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/d<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-d title=d>d</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/e<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-e title=e>e</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/f<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-f title=f>f</a>;

    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m11<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m11 title=m11>m11</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m12<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m12 title=m12>m12</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m13<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m13 title=m13>m13</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m14<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m14 title=m14>m14</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m21<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m21 title=m21>m21</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m22<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m22 title=m22>m22</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m23<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m23 title=m23>m23</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m24<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m24 title=m24>m24</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m31<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m31 title=m31>m31</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m32<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m32 title=m32>m32</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m33<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m33 title=m33>m33</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m34<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m34 title=m34>m34</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m41<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m41 title=m41>m41</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m42<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m42 title=m42>m42</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m43<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m43 title=m43>m43</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m44<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m44 title=m44>m44</a>;

    // Mutable transform methods
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/multiplyself()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-multiplyself title=multiplySelf()>multiplySelf</a>(<a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <dfn class=idl-code data-dfn-for=DOMMatrix/multiplySelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/multiplySelf()<method>/other<argument>" id=dom-dommatrix-multiplyself-other>other<a class=self-link href=#dom-dommatrix-multiplyself-other></a></dfn>);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/premultiplyself()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-premultiplyself title=preMultiplySelf()>preMultiplySelf</a>(<a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <dfn class=idl-code data-dfn-for=DOMMatrix/preMultiplySelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/preMultiplySelf()<method>/other<argument>" id=dom-dommatrix-premultiplyself-other>other<a class=self-link href=#dom-dommatrix-premultiplyself-other></a></dfn>);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/translateself()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-translateself title=translateSelf()>translateSelf</a>(unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/translateSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/translateSelf()<method>/tx<argument>" id=dom-dommatrix-translateself-tx>tx<a class=self-link href=#dom-dommatrix-translateself-tx></a></dfn>,
                     unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/translateSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/translateSelf()<method>/ty<argument>" id=dom-dommatrix-translateself-ty>ty<a class=self-link href=#dom-dommatrix-translateself-ty></a></dfn>,
                     optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/translateSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/translateSelf()<method>/tz<argument>" id=dom-dommatrix-translateself-tz>tz<a class=self-link href=#dom-dommatrix-translateself-tz></a></dfn> = 0);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/scaleself()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-scaleself title=scaleSelf()>scaleSelf</a>(unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/scaleSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scaleSelf()<method>/scale<argument>" id=dom-dommatrix-scaleself-scale>scale<a class=self-link href=#dom-dommatrix-scaleself-scale></a></dfn>,
                 optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/scaleSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scaleSelf()<method>/originx<argument>" id=dom-dommatrix-scaleself-originx>originX<a class=self-link href=#dom-dommatrix-scaleself-originx></a></dfn> = 0,
                 optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/scaleSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scaleSelf()<method>/originy<argument>" id=dom-dommatrix-scaleself-originy>originY<a class=self-link href=#dom-dommatrix-scaleself-originy></a></dfn> = 0);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/scale3dself()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-scale3dself title=scale3dSelf()>scale3dSelf</a>(unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/scale3dSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scale3dSelf()<method>/scale<argument>" id=dom-dommatrix-scale3dself-scale>scale<a class=self-link href=#dom-dommatrix-scale3dself-scale></a></dfn>,
                   optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/scale3dSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scale3dSelf()<method>/originx<argument>" id=dom-dommatrix-scale3dself-originx>originX<a class=self-link href=#dom-dommatrix-scale3dself-originx></a></dfn> = 0,
                   optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/scale3dSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scale3dSelf()<method>/originy<argument>" id=dom-dommatrix-scale3dself-originy>originY<a class=self-link href=#dom-dommatrix-scale3dself-originy></a></dfn> = 0,
                   optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/scale3dSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scale3dSelf()<method>/originz<argument>" id=dom-dommatrix-scale3dself-originz>originZ<a class=self-link href=#dom-dommatrix-scale3dself-originz></a></dfn> = 0);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/scalenonuniformself()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-scalenonuniformself title=scaleNonUniformSelf()>scaleNonUniformSelf</a>(unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/scaleNonUniformSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scaleNonUniformSelf()<method>/scalex<argument>" id=dom-dommatrix-scalenonuniformself-scalex>scaleX<a class=self-link href=#dom-dommatrix-scalenonuniformself-scalex></a></dfn>,
                           optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/scaleNonUniformSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scaleNonUniformSelf()<method>/scaley<argument>" id=dom-dommatrix-scalenonuniformself-scaley>scaleY<a class=self-link href=#dom-dommatrix-scalenonuniformself-scaley></a></dfn> = 1,
                           optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/scaleNonUniformSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scaleNonUniformSelf()<method>/scalez<argument>" id=dom-dommatrix-scalenonuniformself-scalez>scaleZ<a class=self-link href=#dom-dommatrix-scalenonuniformself-scalez></a></dfn> = 1,
                           optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/scaleNonUniformSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scaleNonUniformSelf()<method>/originx<argument>" id=dom-dommatrix-scalenonuniformself-originx>originX<a class=self-link href=#dom-dommatrix-scalenonuniformself-originx></a></dfn> = 0,
                           optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/scaleNonUniformSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scaleNonUniformSelf()<method>/originy<argument>" id=dom-dommatrix-scalenonuniformself-originy>originY<a class=self-link href=#dom-dommatrix-scalenonuniformself-originy></a></dfn> = 0,
                           optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/scaleNonUniformSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scaleNonUniformSelf()<method>/originz<argument>" id=dom-dommatrix-scalenonuniformself-originz>originZ<a class=self-link href=#dom-dommatrix-scalenonuniformself-originz></a></dfn> = 0);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/rotateself()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-rotateself title=rotateSelf()>rotateSelf</a>(unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/rotateSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/rotateSelf()<method>/angle<argument>" id=dom-dommatrix-rotateself-angle>angle<a class=self-link href=#dom-dommatrix-rotateself-angle></a></dfn>,
                  optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/rotateSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/rotateSelf()<method>/originx<argument>" id=dom-dommatrix-rotateself-originx>originX<a class=self-link href=#dom-dommatrix-rotateself-originx></a></dfn> = 0,
                  optional unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/rotateSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/rotateSelf()<method>/originy<argument>" id=dom-dommatrix-rotateself-originy>originY<a class=self-link href=#dom-dommatrix-rotateself-originy></a></dfn> = 0);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/rotatefromvectorself()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-rotatefromvectorself title=rotateFromVectorSelf()>rotateFromVectorSelf</a>(unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/rotateFromVectorSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/rotateFromVectorSelf()<method>/x<argument>" id=dom-dommatrix-rotatefromvectorself-x>x<a class=self-link href=#dom-dommatrix-rotatefromvectorself-x></a></dfn>,
                            unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/rotateFromVectorSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/rotateFromVectorSelf()<method>/y<argument>" id=dom-dommatrix-rotatefromvectorself-y>y<a class=self-link href=#dom-dommatrix-rotatefromvectorself-y></a></dfn>);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/rotateaxisangleself()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-rotateaxisangleself title=rotateAxisAngleSelf()>rotateAxisAngleSelf</a>(unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/rotateAxisAngleSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/rotateAxisAngleSelf()<method>/x<argument>" id=dom-dommatrix-rotateaxisangleself-x>x<a class=self-link href=#dom-dommatrix-rotateaxisangleself-x></a></dfn>,
                           unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/rotateAxisAngleSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/rotateAxisAngleSelf()<method>/y<argument>" id=dom-dommatrix-rotateaxisangleself-y>y<a class=self-link href=#dom-dommatrix-rotateaxisangleself-y></a></dfn>,
                           unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/rotateAxisAngleSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/rotateAxisAngleSelf()<method>/z<argument>" id=dom-dommatrix-rotateaxisangleself-z>z<a class=self-link href=#dom-dommatrix-rotateaxisangleself-z></a></dfn>,
                           unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/rotateAxisAngleSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/rotateAxisAngleSelf()<method>/angle<argument>" id=dom-dommatrix-rotateaxisangleself-angle>angle<a class=self-link href=#dom-dommatrix-rotateaxisangleself-angle></a></dfn>);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/skewxself()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-skewxself title=skewXSelf()>skewXSelf</a>(unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/skewXSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/skewXSelf()<method>/sx<argument>" id=dom-dommatrix-skewxself-sx>sx<a class=self-link href=#dom-dommatrix-skewxself-sx></a></dfn>);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/skewyself()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-skewyself title=skewYSelf()>skewYSelf</a>(unrestricted double <dfn class=idl-code data-dfn-for=DOMMatrix/skewYSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/skewYSelf()<method>/sy<argument>" id=dom-dommatrix-skewyself-sy>sy<a class=self-link href=#dom-dommatrix-skewyself-sy></a></dfn>);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/invertself()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-invertself title=invertSelf()>invertSelf</a>();

    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/setmatrixvalue()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-setmatrixvalue title=setMatrixValue()>setMatrixValue</a>(DOMString <dfn class=idl-code data-dfn-for=DOMMatrix/setMatrixValue() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/setMatrixValue()<method>/transformlist<argument>" id=dom-dommatrix-setmatrixvalue-transformlist>transformList<a class=self-link href=#dom-dommatrix-setmatrixvalue-transformlist></a></dfn>);
};
</pre>

<p>The following algorithms assume that <a class=idl-code data-link-type=interface href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> objects have the internal member variables <dfn data-dfn-for=matrix data-dfn-type=dfn data-noexport="" id=m11-element>m11 element<a class=self-link href=#m11-element></a></dfn>, <dfn data-dfn-for=matrix data-dfn-type=dfn data-noexport="" id=m12-element>m12 element<a class=self-link href=#m12-element></a></dfn>, <dfn data-dfn-for=matrix data-dfn-type=dfn data-noexport="" id=m13-element>m13 element<a class=self-link href=#m13-element></a></dfn>, <dfn data-dfn-for=matrix data-dfn-type=dfn data-noexport="" id=m14-element>m14 element<a class=self-link href=#m14-element></a></dfn>, <dfn data-dfn-for=matrix data-dfn-type=dfn data-noexport="" id=m21-element>m21 element<a class=self-link href=#m21-element></a></dfn>, <dfn data-dfn-for=matrix data-dfn-type=dfn data-noexport="" id=m22-element>m22 element<a class=self-link href=#m22-element></a></dfn>, <dfn data-dfn-for=matrix data-dfn-type=dfn data-noexport="" id=m23-element>m23 element<a class=self-link href=#m23-element></a></dfn>, <dfn data-dfn-for=matrix data-dfn-type=dfn data-noexport="" id=m24-element>m24 element<a class=self-link href=#m24-element></a></dfn>, <dfn data-dfn-for=matrix data-dfn-type=dfn data-noexport="" id=m31-element>m31 element<a class=self-link href=#m31-element></a></dfn>, <dfn data-dfn-for=matrix data-dfn-type=dfn data-noexport="" id=m32-element>m32 element<a class=self-link href=#m32-element></a></dfn>, <dfn data-dfn-for=matrix data-dfn-type=dfn data-noexport="" id=m33-element>m33 element<a class=self-link href=#m33-element></a></dfn>, <dfn data-dfn-for=matrix data-dfn-type=dfn data-noexport="" id=m34-element>m34 element<a class=self-link href=#m34-element></a></dfn>, <dfn data-dfn-for=matrix data-dfn-type=dfn data-noexport="" id=m41-element>m41 element<a class=self-link href=#m41-element></a></dfn>, <dfn data-dfn-for=matrix data-dfn-type=dfn data-noexport="" id=m42-element>m42 element<a class=self-link href=#m42-element></a></dfn>, <dfn data-dfn-for=matrix data-dfn-type=dfn data-noexport="" id=m43-element>m43 element<a class=self-link href=#m43-element></a></dfn>, <dfn data-dfn-for=matrix data-dfn-type=dfn data-noexport="" id=m44-element>m44 element<a class=self-link href=#m44-element></a></dfn> and <a data-link-type=dfn href=#is2d title=is2D>is2D</a>. <a class=idl-code data-link-type=interface href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> as well as the inheriting interface <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> must be able to access and set the value of these variables.</p>

<p>An interface returning an <a class=idl-code data-link-type=interface href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> object by an attribute or function may be able to modify internal member variable values. Such an interface must specify this ability explicitly in prose.</p>

<p>Internal member variables must not be exposed in any way.</p>

<p>The <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> and <a class=idl-code data-link-type=interface href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> interfaces replace the SVGMatrix interface from SVG <a data-biblio-type=informative data-link-type=biblio href=#biblio-svg11 title=SVG11>[SVG11]</a>.</p>

<p>For historical reasons, Window objects must also have a writable, configurable, non-enumerable property named <dfn class=idl-code data-dfn-type=interface data-export="" id=dom-svgmatrix>SVGMatrix<a class=self-link href=#dom-svgmatrix></a></dfn> whose value is the <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> interface object.</p>

<h3 class="heading settled" data-level=6.1 id=dommatrixreadonly-constructors><span class=secno>6.1. </span><span class=content>DOMMatrixReadOnly constructor</span><a class=self-link href=#dommatrixreadonly-constructors></a></h3>

<p>The <dfn class=idl-code data-dfn-for=DOMMatrixReadOnly data-dfn-type=constructor data-export="" id=dom-dommatrixreadonly-dommatrixreadonly title=DOMMatrixReadOnly()><code>DOMMatrixReadOnly(sequence&lt;unrestricted double&gt; <var>numberSequence</var>)</code><a class=self-link href=#dom-dommatrixreadonly-dommatrixreadonly></a></dfn> constructor, when invoked, must run the following steps:</p>

<dl class=switch>
  <dt>If <var>numberSequence</var> has 6 elements</dt>
  <dd>
    <ol>
      <li>Set <a data-link-type=dfn href=#m11-element title="m11 element">m11 element</a>, <a data-link-type=dfn href=#m12-element title="m12 element">m12 element</a>, <a data-link-type=dfn href=#m21-element title="m21 element">m21 element</a>, <a data-link-type=dfn href=#m22-element title="m22 element">m22 element</a>, <a data-link-type=dfn href=#m41-element title="m41 element">m41 element</a>, <a data-link-type=dfn href=#m42-element title="m42 element">m42 element</a> to the values of <var>numberSequence</var> in order starting with the first value. Furthermore, set <a data-link-type=dfn href=#m31-element title="m31 element">m31 element</a>, <a data-link-type=dfn href=#m32-element title="m32 element">m32 element</a>, <a data-link-type=dfn href=#m13-element title="m13 element">m13 element</a>, <a data-link-type=dfn href=#m23-element title="m23 element">m23 element</a>, <a data-link-type=dfn href=#m43-element title="m43 element">m43 element</a>, <a data-link-type=dfn href=#m14-element title="m14 element">m14 element</a>, <a data-link-type=dfn href=#m24-element title="m24 element">m24 element</a>, <a data-link-type=dfn href=#m34-element title="m34 element">m34 element</a> to <span class=css>0</span> and <a data-link-type=dfn href=#m33-element title="m33 element">m33 element</a>, <a data-link-type=dfn href=#m44-element title="m44 element">m44 element</a> to <span class=css>1</span>.</li>
      <li>Set <a data-link-type=dfn href=#is2d title=is2D>is2D</a> to <span class=css>true</span>.</li>
      <li>Return the new <a class=idl-code data-link-type=interface href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> object.</li>
    </ol>
  </dd>
  <dt>If <var>numberSequence</var> has 16 elements</dt>
  <dd>
    <ol>
      <li>Set <a data-link-type=dfn href=#m11-element title="m11 element">m11 element</a> to <a data-link-type=dfn href=#m44-element title="m44 element">m44 element</a> to the values of <var>numberSequence</var> in column-major order.</li>
      <li>Set <a data-link-type=dfn href=#is2d title=is2D>is2D</a> to <span class=css>false</span>.</li>
      <li>Return the new <a class=idl-code data-link-type=interface href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> object.</li>
    </ol>
  </dd>
  <dt>Otherwise</dt>
  <dd>Throw a <code>TypeError</code> exception.</dd>
</dl>


<h3 class="heading settled" data-level=6.2 id=dommatrix-constructors><span class=secno>6.2. </span><span class=content>DOMMatrix constructors</span><a class=self-link href=#dommatrix-constructors></a></h3>

<p>The <dfn class=idl-code data-dfn-for=DOMMatrix data-dfn-type=constructor data-export="" id=dom-dommatrix-dommatrix><code>DOMMatrix()</code><a class=self-link href=#dom-dommatrix-dommatrix></a></dfn> constructor, when invoked, must run the following steps:</p>

<dl class=switch>
  <dt>If invoked with no arguments</dt>
  <dd>
    <ol>
      <li>Call the constructor of <a class=idl-code data-link-type=interface href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> with a sequence of numbers: 1, 0, 0, 1, 0, 0.</li>
      <li>Return the new <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> object.</li>
    </ol>
  </dd>
  <dt>If invoked with a <a class=idl-code data-link-type=interface title=DOMString>DOMString</a> argument <var>transformList</var></dt>
  <dd>
    <ol>
      <li>Parse <var>transformList</var> by following the syntax description in “<a href=http://www.w3.org/TR/css-transforms-1/#svg-syntax>Syntax of the SVG ‘transform’ attribute</a>” <a data-biblio-type=normative data-link-type=biblio href=#biblio-css3-transforms title=CSS3-TRANSFORMS>[CSS3-TRANSFORMS]</a> to a <a class="production css" data-link-type=type href=http://www.w3.org/TR/css-transforms-1/#typedef-transform-list title="<transform-list>">&lt;transform-list&gt;</a>. If parsing is not successful or any <a class="production css" data-link-type=type href=http://www.w3.org/TR/css-transforms-1/#typedef-transform-function title="<transform-function>">&lt;transform-function&gt;</a> has <a class="production css" data-link-type=type href=http://www.w3.org/TR/css3-values/#length-value title="<length>">&lt;length&gt;</a> values without <a data-link-spec=css-values data-link-type=dfn href=http://dev.w3.org/csswg/css-values-3/#absolute-length title="absolute length">absolute length</a> units, throw a <a data-link-spec=html5 data-link-type=dfn href=https://html.spec.whatwg.org/#js-syntaxerror title=SyntaxError>SyntaxError</a> exception.</li>
      <li>Let <var>2dTransform</var> track the 2D/3D dimension status of the <a class="production css" data-link-type=type href=http://www.w3.org/TR/css-transforms-1/#typedef-transform-list title="<transform-list>">&lt;transform-list&gt;</a>.
        <dl class=switch>
          <dt>If the <a class="production css" data-link-type=type href=http://www.w3.org/TR/css-transforms-1/#typedef-transform-list title="<transform-list>">&lt;transform-list&gt;</a> consists of any <a href=http://www.w3.org/TR/css-transforms-1/#three-d-transform-functions>3D Transform functions</a></dt>
          <dd>Set <var>2dTransform</var> to <span class=css>false</span>.</dd>
          <dt>Otherwise</dt>
          <dd>Set <var>2dTransform</var> to <span class=css>true</span>.</dd>
        </dl>
      </li>
      <li>Transform all <a class="production css" data-link-type=type href=http://www.w3.org/TR/css-transforms-1/#typedef-transform-function title="<transform-function>">&lt;transform-function&gt;</a>s to 4x4 matrices by following the “<a href=http://www.w3.org/TR/css-transforms-1/#mathematical-description>Mathematical Description of Transform Functions</a>” <a data-biblio-type=normative data-link-type=biblio href=#biblio-css3-transforms title=CSS3-TRANSFORMS>[CSS3-TRANSFORMS]</a>.</li>
      <li>Let <var>matrix</var> be a 4x4 matrix as shown in the initial figure of this section. Post-multiply all matrices from left to right and set <var>matrix</var> to this product.</li>
      <li>Call the constructor of <a class=idl-code data-link-type=interface href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> as follows
        <dl class=switch>
          <dt>If <var>2dTransform</var> is set to <span class=css>true</span></dt>
          <dd>Call the constructor of <a class=idl-code data-link-type=interface href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> with a sequence of numbers, the values being the 16 elements of <var>matrix</var>.</dd>
          <dt>If <var>2dTransform</var> is set to <span class=css>false</span></dt>
          <dd>Call the constructor of <a class=idl-code data-link-type=interface href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> with a sequence of numbers, the values being the elements <var>m11</var>, <var>m12</var>, <var>21</var>, <var>m22</var>, <var>m41</var> and <var>m42</var> of <var>matrix</var> of <var>matrix</var>.</dd>
        </dl>
      </li>
      <li>Return the new <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> object.</li>
    </ol>
  </dd>
  <dt>If invoked with a <a class=idl-code data-link-type=interface href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> argument <var>other</var></dt>
  <dd>
    <dl class=switch>
      <dt>If the <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-is2d title=is2D>is2D</a> attribute of <var>other</var> returns <span class=css>true</span></dt>
      <dd>Call the constructor of <a class=idl-code data-link-type=interface href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> with a sequence of numbers, the values being the 16 elements <a data-link-type=dfn href=#m11-element title="m11 element">m11 element</a>, <a data-link-type=dfn href=#m12-element title="m12 element">m12 element</a>, <a data-link-type=dfn href=#m13-element title="m13 element">m13 element</a>, ..., <a data-link-type=dfn href=#m44-element title="m44 element">m44 element</a> of <var>other</var> in the given order.</dd>
      <dt>Otherwise</dt>
      <dd>Call the constructor of <a class=idl-code data-link-type=interface href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> with a sequence of numbers, the values being the 6 elements <a data-link-type=dfn href=#m11-element title="m11 element">m11 element</a>, <a data-link-type=dfn href=#m12-element title="m12 element">m12 element</a>, <a data-link-type=dfn href=#m21-element title="m21 element">m21 element</a>, <a data-link-type=dfn href=#m22-element title="m22 element">m22 element</a>, <a data-link-type=dfn href=#m41-element title="m41 element">m41 element</a> and <a data-link-type=dfn href=#m42-element title="m42 element">m42 element</a> of <var>other</var> in the given order.</dd>
    </dl>
  </dd>
  <dt>If invoked with a <a class=idl-code data-link-type=interface href=https://html.spec.whatwg.org/#float32array title=Float32Array>Float32Array</a> argument <var>array32</var></dt>
  <dd>
    <dl class=switch>
      <dt>If <var>array32</var> has 6 elements</dt>
      <dt>If <var>array32</var> has 16 elements</dt>
      <dd>
        <ol>
          <li>Call the constructor of <a class=idl-code data-link-type=interface href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> with a sequence of numbers taking the values from <var>array32</var> in the provided order.</li>
          <li>Return the new <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> object.</li>
        </ol>
      </dd>
      <dt>Otherwise</dt>
      <dd>Throw a <code>TypeError</code> exception.</dd>
    </dl>
  </dd>
  <dt>If invoked with a <a class=idl-code data-link-type=interface href=https://html.spec.whatwg.org/#float64array title=Float64Array>Float64Array</a> argument <var>array64</var></dt>
  <dd>
    <dl class=switch>
      <dt>If <var>array64</var> has 6 elements</dt>
      <dt>If <var>array64</var> has 16 elements</dt>
      <dd>
        <ol>
          <li>Call the constructor of <a class=idl-code data-link-type=interface href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> with sequence of numbers taking the values from <var>array64</var> in the provided order.</li>
          <li>Return the new <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> object.</li>
        </ol>
      </dd>
      <dt>Otherwise</dt>
      <dd>Throw a <code>TypeError</code> exception.</dd>
    </dl>
  </dd>
  <dt>If invoked with a sequence&lt;unrestricted double&gt; argument <var>numberSequence</var></dt>
  <dd>
    <dl class=switch>
      <dt>If <var>array64</var> has 6 elements</dt>
      <dt>If <var>array64</var> has 16 elements</dt>
      <dd>
        <ol>
          <li>Call the constructor of <a class=idl-code data-link-type=interface href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> with <var>numberSequence</var> as argument.</li>
          <li>Return the new <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> object.</li>
        </ol>
      </dd>
      <dt>Otherwise</dt>
      <dd>Throw a <code>TypeError</code> exception.</dd>
    </dl>
  </dd>
</dl>

<h3 class="heading settled" data-level=6.3 id=dommatrix-attributes><span class=secno>6.3. </span><span class=content>DOMMatrix attributes</span><a class=self-link href=#dommatrix-attributes></a></h3>

<p>The following attributes <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m11 title=m11>m11</a> to <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m44 title=m44>m44</a> correspond to the 16 items of the matrix interfaces. For the <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> interface, if the attributes <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m31 title=m31>m31</a>, <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m32 title=m32>m32</a>, <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m13 title=m13>m13</a>, <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m23 title=m23>m23</a>, <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m43 title=m43>m43</a>, <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m14 title=m14>m14</a>, <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m24 title=m24>m24</a>, <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m34 title=m34>m34</a> are set to something else than <span class=css>0</span> or <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m33 title=m33>m33</a>, <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m44 title=m44>m44</a> are set to something else than <span class=css>1</span> set <a data-link-type=dfn href=#is2d title=is2D>is2D</a> to <span class=css>false</span>.</p>

<div data-dfn-for="DOMMatrixReadOnly DOMMatrix" data-dfn-type=attribute>
  The <dfn class=idl-code data-dfn-for="DOMMatrixReadOnly DOMMatrix" data-dfn-type=attribute data-export="" id=dom-dommatrixreadonly-dommatrix-m11>m11<a class=self-link href=#dom-dommatrixreadonly-dommatrix-m11></a></dfn> attribute, on getting, must return the <a data-link-type=dfn href=#m11-element title="m11 element">m11 element</a> value of the object it was invoked on. For the <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> interface, setting the <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m11 title=m11>m11</a> attribute must set the <a data-link-type=dfn href=#m11-element title="m11 element">m11 element</a> value of the object it was invoked on to the new value.

<p>The <dfn class=idl-code data-dfn-for="DOMMatrixReadOnly DOMMatrix" data-dfn-type=attribute data-export="" id=dom-dommatrixreadonly-dommatrix-m12>m12<a class=self-link href=#dom-dommatrixreadonly-dommatrix-m12></a></dfn> attribute, on getting, must return the <a data-link-type=dfn href=#m12-element title="m12 element">m12 element</a> value of the object it was invoked on. For the <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> interface, setting the <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m12 title=m12>m12</a> attribute must set the <a data-link-type=dfn href=#m12-element title="m12 element">m12 element</a> value of the object it was invoked on to the new value.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMMatrixReadOnly DOMMatrix" data-dfn-type=attribute data-export="" id=dom-dommatrixreadonly-dommatrix-m13>m13<a class=self-link href=#dom-dommatrixreadonly-dommatrix-m13></a></dfn> attribute, on getting, must return the <a data-link-type=dfn href=#m13-element title="m13 element">m13 element</a> value of the object it was invoked on. For the <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> interface, setting the <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m13 title=m13>m13</a> attribute must set the <a data-link-type=dfn href=#m13-element title="m13 element">m13 element</a> value of the object it was invoked on to the new value.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMMatrixReadOnly DOMMatrix" data-dfn-type=attribute data-export="" id=dom-dommatrixreadonly-dommatrix-m14>m14<a class=self-link href=#dom-dommatrixreadonly-dommatrix-m14></a></dfn> attribute, on getting, must return the <a data-link-type=dfn href=#m14-element title="m14 element">m14 element</a> value of the object it was invoked on. For the <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> interface, setting the <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m14 title=m14>m14</a> attribute must set the <a data-link-type=dfn href=#m14-element title="m14 element">m14 element</a> value of the object it was invoked on to the new value.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMMatrixReadOnly DOMMatrix" data-dfn-type=attribute data-export="" id=dom-dommatrixreadonly-dommatrix-m21>m21<a class=self-link href=#dom-dommatrixreadonly-dommatrix-m21></a></dfn> attribute, on getting, must return the <a data-link-type=dfn href=#m21-element title="m21 element">m21 element</a> value of the object it was invoked on. For the <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> interface, setting the <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m21 title=m21>m21</a> attribute must set the <a data-link-type=dfn href=#m21-element title="m21 element">m21 element</a> value of the object it was invoked on to the new value.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMMatrixReadOnly DOMMatrix" data-dfn-type=attribute data-export="" id=dom-dommatrixreadonly-dommatrix-m22>m22<a class=self-link href=#dom-dommatrixreadonly-dommatrix-m22></a></dfn> attribute, on getting, must return the <a data-link-type=dfn href=#m22-element title="m22 element">m22 element</a> value of the object it was invoked on. For the <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> interface, setting the <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m22 title=m22>m22</a> attribute must set the <a data-link-type=dfn href=#m22-element title="m22 element">m22 element</a> value of the object it was invoked on to the new value.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMMatrixReadOnly DOMMatrix" data-dfn-type=attribute data-export="" id=dom-dommatrixreadonly-dommatrix-m23>m23<a class=self-link href=#dom-dommatrixreadonly-dommatrix-m23></a></dfn> attribute, on getting, must return the <a data-link-type=dfn href=#m23-element title="m23 element">m23 element</a> value of the object it was invoked on. For the <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> interface, setting the <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m23 title=m23>m23</a> attribute must set the <a data-link-type=dfn href=#m23-element title="m23 element">m23 element</a> value of the object it was invoked on to the new value.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMMatrixReadOnly DOMMatrix" data-dfn-type=attribute data-export="" id=dom-dommatrixreadonly-dommatrix-m24>m24<a class=self-link href=#dom-dommatrixreadonly-dommatrix-m24></a></dfn> attribute, on getting, must return the <a data-link-type=dfn href=#m24-element title="m24 element">m24 element</a> value of the object it was invoked on. For the <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> interface, setting the <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m24 title=m24>m24</a> attribute must set the <a data-link-type=dfn href=#m24-element title="m24 element">m24 element</a> value of the object it was invoked on to the new value.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMMatrixReadOnly DOMMatrix" data-dfn-type=attribute data-export="" id=dom-dommatrixreadonly-dommatrix-m31>m31<a class=self-link href=#dom-dommatrixreadonly-dommatrix-m31></a></dfn> attribute, on getting, must return the <a data-link-type=dfn href=#m31-element title="m31 element">m31 element</a> value of the object it was invoked on. For the <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> interface, setting the <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m31 title=m31>m31</a> attribute must set the <a data-link-type=dfn href=#m31-element title="m31 element">m31 element</a> value of the object it was invoked on to the new value.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMMatrixReadOnly DOMMatrix" data-dfn-type=attribute data-export="" id=dom-dommatrixreadonly-dommatrix-m32>m32<a class=self-link href=#dom-dommatrixreadonly-dommatrix-m32></a></dfn> attribute, on getting, must return the <a data-link-type=dfn href=#m32-element title="m32 element">m32 element</a> value of the object it was invoked on. For the <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> interface, setting the <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m32 title=m32>m32</a> attribute must set the <a data-link-type=dfn href=#m32-element title="m32 element">m32 element</a> value of the object it was invoked on to the new value.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMMatrixReadOnly DOMMatrix" data-dfn-type=attribute data-export="" id=dom-dommatrixreadonly-dommatrix-m33>m33<a class=self-link href=#dom-dommatrixreadonly-dommatrix-m33></a></dfn> attribute, on getting, must return the <a data-link-type=dfn href=#m33-element title="m33 element">m33 element</a> value of the object it was invoked on. For the <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> interface, setting the <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m33 title=m33>m33</a> attribute must set the <a data-link-type=dfn href=#m33-element title="m33 element">m33 element</a> value of the object it was invoked on to the new value.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMMatrixReadOnly DOMMatrix" data-dfn-type=attribute data-export="" id=dom-dommatrixreadonly-dommatrix-m34>m34<a class=self-link href=#dom-dommatrixreadonly-dommatrix-m34></a></dfn> attribute, on getting, must return the <a data-link-type=dfn href=#m34-element title="m34 element">m34 element</a> value of the object it was invoked on. For the <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> interface, setting the <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m34 title=m34>m34</a> attribute must set the <a data-link-type=dfn href=#m34-element title="m34 element">m34 element</a> value of the object it was invoked on to the new value.</p>


<p>The <dfn class=idl-code data-dfn-for="DOMMatrixReadOnly DOMMatrix" data-dfn-type=attribute data-export="" id=dom-dommatrixreadonly-dommatrix-m41>m41<a class=self-link href=#dom-dommatrixreadonly-dommatrix-m41></a></dfn> attribute, on getting, must return the <a data-link-type=dfn href=#m41-element title="m41 element">m41 element</a> value of the object it was invoked on. For the <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> interface, setting the <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m41 title=m41>m41</a> attribute must set the <a data-link-type=dfn href=#m41-element title="m41 element">m41 element</a> value of the object it was invoked on to the new value.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMMatrixReadOnly DOMMatrix" data-dfn-type=attribute data-export="" id=dom-dommatrixreadonly-dommatrix-m42>m42<a class=self-link href=#dom-dommatrixreadonly-dommatrix-m42></a></dfn> attribute, on getting, must return the <a data-link-type=dfn href=#m42-element title="m42 element">m42 element</a> value of the object it was invoked on. For the <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> interface, setting the <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m42 title=m42>m42</a> attribute must set the <a data-link-type=dfn href=#m42-element title="m42 element">m42 element</a> value of the object it was invoked on to the new value.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMMatrixReadOnly DOMMatrix" data-dfn-type=attribute data-export="" id=dom-dommatrixreadonly-dommatrix-m43>m43<a class=self-link href=#dom-dommatrixreadonly-dommatrix-m43></a></dfn> attribute, on getting, must return the <a data-link-type=dfn href=#m43-element title="m43 element">m43 element</a> value of the object it was invoked on. For the <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> interface, setting the <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m43 title=m43>m43</a> attribute must set the <a data-link-type=dfn href=#m43-element title="m43 element">m43 element</a> value of the object it was invoked on to the new value.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMMatrixReadOnly DOMMatrix" data-dfn-type=attribute data-export="" id=dom-dommatrixreadonly-dommatrix-m44>m44<a class=self-link href=#dom-dommatrixreadonly-dommatrix-m44></a></dfn> attribute, on getting, must return the <a data-link-type=dfn href=#m44-element title="m44 element">m44 element</a> value of the object it was invoked on. For the <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> interface, setting the <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m44 title=m44>m44</a> attribute must set the <a data-link-type=dfn href=#m44-element title="m44 element">m44 element</a> value of the object it was invoked on to the new value.</p>
</div>


<div data-dfn-for="DOMMatrixReadOnly DOMMatrix" data-dfn-type=attribute>
  The following attributes <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-a title=a>a</a> to <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-f title=f>f</a> correspond to the 2D components of the matrix interfaces.

<p>The <dfn class=idl-code data-dfn-for="DOMMatrixReadOnly DOMMatrix" data-dfn-type=attribute data-export="" id=dom-dommatrixreadonly-dommatrix-a>a<a class=self-link href=#dom-dommatrixreadonly-dommatrix-a></a></dfn> attribute is an alias to the <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m11 title=m11>m11</a> attribute.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMMatrixReadOnly DOMMatrix" data-dfn-type=attribute data-export="" id=dom-dommatrixreadonly-dommatrix-b>b<a class=self-link href=#dom-dommatrixreadonly-dommatrix-b></a></dfn> attribute is an alias to the <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m12 title=m12>m12</a> attribute.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMMatrixReadOnly DOMMatrix" data-dfn-type=attribute data-export="" id=dom-dommatrixreadonly-dommatrix-c>c<a class=self-link href=#dom-dommatrixreadonly-dommatrix-c></a></dfn> attribute is an alias to the <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m21 title=m21>m21</a> attribute.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMMatrixReadOnly DOMMatrix" data-dfn-type=attribute data-export="" id=dom-dommatrixreadonly-dommatrix-d>d<a class=self-link href=#dom-dommatrixreadonly-dommatrix-d></a></dfn> attribute is an alias to the <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m22 title=m22>m22</a> attribute.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMMatrixReadOnly DOMMatrix" data-dfn-type=attribute data-export="" id=dom-dommatrixreadonly-dommatrix-e>e<a class=self-link href=#dom-dommatrixreadonly-dommatrix-e></a></dfn> attribute is an alias to the <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m41 title=m41>m41</a> attribute.</p>

<p>The <dfn class=idl-code data-dfn-for="DOMMatrixReadOnly DOMMatrix" data-dfn-type=attribute data-export="" id=dom-dommatrixreadonly-dommatrix-f>f<a class=self-link href=#dom-dommatrixreadonly-dommatrix-f></a></dfn> attribute is an alias to the <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m42 title=m42>m42</a> attribute.</p>
</div>

<p>The following attributes provide status information about <a class=idl-code data-link-type=interface href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a>.</p>

<dl data-dfn-for=DOMMatrixReadOnly data-dfn-type=attribute>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrixReadOnly data-dfn-type=attribute data-export="" id=dom-dommatrixreadonly-is2d>is2D<a class=self-link href=#dom-dommatrixreadonly-is2d></a></dfn></dt>
  <dd>
    <p>Every <a class=idl-code data-link-type=interface href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> object must be flagged with a boolean <dfn data-dfn-type=dfn data-noexport="" id=is2d>is2D<a class=self-link href=#is2d></a></dfn>. This flag indicates that
      <ol>
        <li>The current matrix was initialized as a 2D matrix. See individual <a href=#dommatrix-constructors>constructors</a> for more details.</li>
        <li>Only 2D transformation operations were applied. Each <a href=#mutable-transformation-methods>mutable</a> or <a href=#immutable-transformation-methods>immutable transformation method</a> defines if <a data-link-type=dfn href=#is2d title=is2D>is2D</a> must be set to <span class=css>false</span>.</li>
      </ol>
    <p></p>
    <p class=note><a data-link-type=dfn href=#is2d title=is2D>is2D</a> can never be set to <span class=css>true</span> when it was set to <span class=css>false</span> before on a <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> object with the exception of calling the <a data-link-type=functionish href=#dom-dommatrix-setmatrixvalue title=setMatrixValue()>setMatrixValue()</a> method.</p>
    <p>Returns the value of <a data-link-type=dfn href=#is2d title=is2D>is2D</a>.</p>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrixReadOnly data-dfn-type=attribute data-export="" id=dom-dommatrixreadonly-isidentity>isIdentity<a class=self-link href=#dom-dommatrixreadonly-isidentity></a></dfn></dt>
  <dd>
    Returns <span class=css>true</span> if <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m12 title=m12>m12</a>, <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m13 title=m13>m13</a>, <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m14 title=m14>m14</a>, <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m21 title=m21>m21</a>, <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m23 title=m23>m23</a>, <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m24 title=m24>m24</a>, <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m31 title=m31>m31</a>, <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m32 title=m32>m32</a>, <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m34 title=m34>m34</a>, <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m41 title=m41>m41</a>, <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m42 title=m42>m42</a>, <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m43 title=m43>m43</a> are <span class=css>0</span> and <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m11 title=m11>m11</a>, <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m22 title=m22>m22</a>, <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m33 title=m33>m33</a>, <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m44 title=m44>m44</a> are <span class=css>1</span>. Otherwise returns <span class=css>false</span>.
  </dd>
</dl>

<h3 class="heading settled" data-level=6.4 id=immutable-transformation-methods><span class=secno>6.4. </span><span class=content>Immutable transformation methods</span><a class=self-link href=#immutable-transformation-methods></a></h3>

<p>The following methods do not modify the current matrix and return a new <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> object.</p>

<dl data-dfn-for=DOMMatrixReadOnly data-dfn-type=method>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrixReadOnly data-dfn-type=method data-export="" id=dom-dommatrixreadonly-translate title=translate()>translate(<var>tx</var>, <var>ty</var>, <var>tz</var>)<a class=self-link href=#dom-dommatrixreadonly-translate></a></dfn></dt>
  <dd>
    <ol>
      <li>Let <em>result</em> be the resulting matrix initialized to the values of the current matrix.</li>
      <li>Perform a <a class=idl-code data-link-type=method href=#dom-dommatrix-translateself title=translateSelf()>translateSelf()</a> transformation on <em>result</em> with the arguments <var>tx</var>, <var>ty</var>, <var>tz</var>.</li>
      <li>Return <em>result</em>.</li>
    </ol>
    <p>The current matrix is not modified.</p>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrixReadOnly data-dfn-type=method data-export="" id=dom-dommatrixreadonly-scale title=scale()>scale(<var>scale</var>, <var>originX</var>, <var>originY</var>)<a class=self-link href=#dom-dommatrixreadonly-scale></a></dfn></dt>
  <dd>
    <ol>
      <li>Let <em>other</em> be the resulting matrix initialized to the values of the current matrix.</li>
      <li>Perform a <a class=idl-code data-link-type=method href=#dom-dommatrix-scaleself title=scaleSelf()>scaleSelf()</a> transformation on <em>result</em> with the arguments <var>scale</var>, <var>originX</var>, <var>originY</var>.</li>
      <li>Return <em>result</em>.</li>
    </ol>
    <p>The current matrix is not modified.</p>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrixReadOnly data-dfn-type=method data-export="" id=dom-dommatrixreadonly-scale3d title=scale3d()>scale3d(<var>scale</var>, <var>originX</var>, <var>originY</var>, <var>originZ</var>)<a class=self-link href=#dom-dommatrixreadonly-scale3d></a></dfn></dt>
  <dd>
    <ol>
      <li>Let <em>result</em> be the resulting matrix initialized to the values of the current matrix.</li>
      <li>Perform a <a class=idl-code data-link-type=method href=#dom-dommatrix-scale3dself title=scale3dSelf()>scale3dSelf()</a> transformation on <em>result</em> with the arguments <var>scale</var>, <var>originX</var>, <var>originY</var>, <var>originZ</var>.</li>
      <li>Return <em>result</em>.</li>
    </ol>
    <p>The current matrix is not modified.</p>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrixReadOnly data-dfn-type=method data-export="" id=dom-dommatrixreadonly-scalenonuniform title=scaleNonUniform()>scaleNonUniform(<var>scaleX</var>, <var>scaleY</var>, <var>scaleZ</var>, <var>originX</var>, <var>originY</var>, <var>originZ</var>)<a class=self-link href=#dom-dommatrixreadonly-scalenonuniform></a></dfn></dt>
  <dd>
    <ol>
      <li>Let <em>result</em> be the resulting matrix initialized to the values of the current matrix.</li>
      <li>Perform a <a class=idl-code data-link-type=method href=#dom-dommatrix-scalenonuniformself title=scaleNonUniformSelf()>scaleNonUniformSelf()</a> transformation on <em>result</em> with the arguments <var>scaleX</var>, <var>scaleY</var>, <var>scaleZ</var>, <var>originX</var>, <var>originY</var>, <var>originZ</var>.</li>
      <li>Return <em>result</em>.</li>
    </ol>
    <p>The current matrix is not modified.</p>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrixReadOnly data-dfn-type=method data-export="" id=dom-dommatrixreadonly-rotate title=rotate()>rotate(<var>angle</var>, <var>originX</var>, <var>originY</var>)<a class=self-link href=#dom-dommatrixreadonly-rotate></a></dfn></dt>
  <dd>
    <ol>
      <li>Let <em>result</em> be the resulting matrix initialized to the values of the current matrix.</li>
      <li>Perform a <a class=idl-code data-link-type=method href=#dom-dommatrix-rotateself title=rotateSelf()>rotateSelf()</a> transformation on <em>result</em> with the arguments <var>angle</var>, <var>originX</var>, <var>originY</var>.</li>
      <li>Return <em>result</em>.</li>
    </ol>
    <p>The current matrix is not modified.</p>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrixReadOnly data-dfn-type=method data-export="" id=dom-dommatrixreadonly-rotatefromvector title=rotateFromVector()>rotateFromVector(<var>x</var>, <var>y</var>)<a class=self-link href=#dom-dommatrixreadonly-rotatefromvector></a></dfn></dt>
  <dd>
    <ol>
      <li>Let <em>result</em> be the resulting matrix initialized to the values of the current matrix.</li>
      <li>Perform a <a class=idl-code data-link-type=method href=#dom-dommatrix-rotatefromvectorself title=rotateFromVectorSelf()>rotateFromVectorSelf()</a> transformation on <em>result</em> with the arguments <var>x</var>, <var>y</var>.</li>
      <li>Return <em>result</em>.</li>
    </ol>
    <p>The current matrix is not modified.</p>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrixReadOnly data-dfn-type=method data-export="" id=dom-dommatrixreadonly-rotateaxisangle title=rotateAxisAngle()>rotateAxisAngle(<var>x</var>, <var>y</var>, <var>z</var>, <var>angle</var>)<a class=self-link href=#dom-dommatrixreadonly-rotateaxisangle></a></dfn></dt>
  <dd>
    <ol>
      <li>Let <em>result</em> be the resulting matrix initialized to the values of the current matrix.</li>
      <li>Perform a <a class=idl-code data-link-type=method href=#dom-dommatrix-rotateaxisangleself title=rotateAxisAngleSelf()>rotateAxisAngleSelf()</a> transformation on <em>result</em> with the arguments <var>x</var>, <var>y</var>, <var>z</var>, <var>angle</var>.</li>
      <li>Return <em>result</em>.</li>
    </ol>
    <p>The current matrix is not modified.</p>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrixReadOnly data-dfn-type=method data-export="" id=dom-dommatrixreadonly-skewx title=skewX()>skewX(<var>sx</var>)<a class=self-link href=#dom-dommatrixreadonly-skewx></a></dfn></dt>
  <dd>
    <ol>
      <li>Let <em>result</em> be the resulting matrix initialized to the values of the current matrix.</li>
      <li>Perform a <a class=idl-code data-link-type=method href=#dom-dommatrix-skewxself title=skewXSelf()>skewXSelf()</a> transformation on <em>result</em> with the argument <var>sx</var>.</li>
      <li>Return <em>result</em>.</li>
    </ol>
    <p>The current matrix is not modified.</p>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrixReadOnly data-dfn-type=method data-export="" id=dom-dommatrixreadonly-skewy title=skewY()>skewY(<var>sy</var>)<a class=self-link href=#dom-dommatrixreadonly-skewy></a></dfn></dt>
  <dd>
    <ol>
      <li>Let <em>result</em> be the resulting matrix initialized to the values of the current matrix.</li>
      <li>Perform a <a class=idl-code data-link-type=method href=#dom-dommatrix-skewyself title=skewYSelf()>skewYSelf()</a> transformation on <em>result</em> with the argument <var>sy</var>.</li>
      <li>Return <em>result</em>.</li>
    </ol>
    <p>The current matrix is not modified.</p>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrixReadOnly data-dfn-type=method data-export="" id=dom-dommatrixreadonly-multiply title=multiply()>multiply(<var>other</var>)<a class=self-link href=#dom-dommatrixreadonly-multiply></a></dfn></dt>
  <dd>
    <ol>
      <li>Let <em>result</em> be the resulting matrix initialized to the values of the current matrix.</li>
      <li>Perform a <a class=idl-code data-link-type=method href=#dom-dommatrixreadonly-multiply title=multiply()>multiply()</a> transformation on <em>result</em> with the argument <var>other</var>.</li>
      <li>Return <em>result</em>.</li>
    </ol>
    <p>The current matrix is not modified.</p>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrixReadOnly data-dfn-type=method data-export="" id=dom-dommatrixreadonly-flipx>flipX()<a class=self-link href=#dom-dommatrixreadonly-flipx></a></dfn></dt>
  <dd>
    <ol>
      <li>Let <em>result</em> be the resulting matrix initialized to the values of the current matrix.</li>
      <li>Post-multiply <em>result</em> with <code>DOMMatrix(-1, 0, 0, 1, 0, 0)</code>.</li>
      <li>Return <em>result</em>.</li>
    </ol>
    <p>The current matrix is not modified.</p>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrixReadOnly data-dfn-type=method data-export="" id=dom-dommatrixreadonly-flipy>flipY()<a class=self-link href=#dom-dommatrixreadonly-flipy></a></dfn></dt>
  <dd>
    <ol>
      <li>Let <em>result</em> be the resulting matrix initialized to the values of the current matrix.</li>
      <li>Post-multiply <em>result</em> with <code>DOMMatrix(1, 0, 0, -1, 0, 0)</code>.</li>
      <li>Return <em>result</em>.</li>
    </ol>
    <p>The current matrix is not modified.</p>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrixReadOnly data-dfn-type=method data-export="" id=dom-dommatrixreadonly-inverse>inverse()<a class=self-link href=#dom-dommatrixreadonly-inverse></a></dfn></dt>
  <dd>
    <ol>
      <li>Let <em>result</em> be the resulting matrix initialized to the values of the current matrix.</li>
      <li>Perform a <a class=idl-code data-link-type=method href=#dom-dommatrix-invertself title=invertSelf()>invertSelf()</a> transformation on <em>result</em>.</li>
      <li>Return <em>result</em>.</li>
    </ol>
    <p>The current matrix is not modified.</p>
  </dd>
</dl>

<p>The following methods do not modify the current matrix.</p>

<dl data-dfn-for=DOMMatrixReadOnly data-dfn-type=method>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrixReadOnly data-dfn-type=method data-export="" id=dom-dommatrixreadonly-transformpoint title=transformPoint()>transformPoint(<var>point</var>)<a class=self-link href=#dom-dommatrixreadonly-transformpoint></a></dfn></dt>
  <dd>
    The point argument is post-multiplied to the current matrix and returns the resulting point. The passed argument does not get modified.
    <p class=note>Note: Even if <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-is2d title=is2D>is2D</a> of the current matrix may return <span class=css>true</span>, a 4x4 matrix multiplication must be performed if the <a class=idl-code data-link-type=attribute href=#dom-dompointreadonly-dompoint-z title=z>z</a> attribute of <var>point</var> is not <span class=css>0</span> or the <a class=idl-code data-link-type=attribute href=#dom-dompointreadonly-dompoint-w title=w>w</a> attribute of <var>point</var> is not <span class=css>1</span>.</p>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrixReadOnly data-dfn-type=method data-export="" id=dom-dommatrixreadonly-tofloat32array>toFloat32Array()<a class=self-link href=#dom-dommatrixreadonly-tofloat32array></a></dfn></dt>
  <dd>
    Returns the serialized 16 elements <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m11 title=m11>m11</a> to <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m44 title=m44>m44</a> of the current matrix in column-major order as <a class=idl-code data-link-type=interface href=https://html.spec.whatwg.org/#float32array title=Float32Array>Float32Array</a> <a data-biblio-type=informative data-link-type=biblio href=#biblio-typedarray title=typedarray>[typedarray]</a>.
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrixReadOnly data-dfn-type=method data-export="" id=dom-dommatrixreadonly-tofloat64array>toFloat64Array()<a class=self-link href=#dom-dommatrixreadonly-tofloat64array></a></dfn></dt>
  <dd>
    Returns the serialized 16 elements <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m11 title=m11>m11</a> to <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m44 title=m44>m44</a> of the current matrix in column-major order as <a class=idl-code data-link-type=interface href=https://html.spec.whatwg.org/#float64array title=Float64Array>Float64Array</a> <a data-biblio-type=informative data-link-type=biblio href=#biblio-typedarray title=typedarray>[typedarray]</a>.
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrixReadOnly data-dfn-type=method data-export="" id=dom-dommatrixreadonly-stringifier>stringifier()<a class=self-link href=#dom-dommatrixreadonly-stringifier></a></dfn></dt>
  <dd>
    <dl class=switch>
      <dt>If <a data-link-type=dfn href=#is2d title=is2D>is2D</a> is <span class=css>true</span></dt>
      <dd>
        Return a DOMString in the form of a CSS Transforms <a class="production css" data-link-type=function href=http://www.w3.org/TR/css-transforms-1/#funcdef-matrix title=matrix()>&lt;matrix()&gt;</a> function where <var>a</var> is <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-a title=a>a</a> attribute, <var>b</var> is <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-b title=b>b</a> attribute, <var>c</var> is <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-c title=c>c</a> attribute, <var>d</var> is <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-d title=d>d</a> attribute, <var>e</var> is <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-e title=e>e</a> attribute, <var>f</var> is <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-f title=f>f</a> attribute, <a data-biblio-type=normative data-link-type=biblio href=#biblio-css3-transforms title=CSS3-TRANSFORMS>[CSS3-TRANSFORMS]</a>.
      </dd>
      <dt>Otherwise</dt>
      <dd>
        Return a DOMString in the form of a CSS Transforms <a class="production css" data-link-type=function href=http://www.w3.org/TR/css-transforms-1/#funcdef-matrix3d title=matrix3d()>&lt;matrix3d()&gt;</a> function where <var>m11</var> to <var>m44</var> are set to <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m11 title=m11>m11</a> to <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m44 title=m44>m44</a> attributes <a data-biblio-type=normative data-link-type=biblio href=#biblio-css3-transforms title=CSS3-TRANSFORMS>[CSS3-TRANSFORMS]</a>.
      </dd>
    </dl>
    <div class=example>
      <p>In this example, a matrix is created and several 2D transformation methods are called:</p>
      <pre><code>var matrix = new DOMMatrix();
matrix.scaleSelf(2);
matrix.translateSelf(20,20);</code></pre>
      <p>Calling <code>matrix.toString()</code> returns the DOMString:</p>
<pre><code>"matrix(2, 0, 0, 2, 20, 20)"</code></pre>
      <p>In the following example, a matrix is created and several 3D transformation methods are called:</p>
      <pre><code>var matrix = new DOMMatrix();
matrix.scale3dSelf(2);</code></pre>
      <p>For 3D operations, the <var>stringifier</var> returns a DOMString representing a 3D matrix.</p>
      <p>Calling <code>matrix.toString()</code> after the snippet above returns the DOMString:</p>
<pre><code>"matrix3d(2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1)"</code></pre>
    </div>
  </dd>
</dl>

<h3 class="heading settled" data-level=6.5 id=mutable-transformation-methods><span class=secno>6.5. </span><span class=content>Mutable transformation methods</span><a class=self-link href=#mutable-transformation-methods></a></h3>

<p>The following methods modify the current matrix, so that each method returns the matrix where it was invoked on. The primary benefit of this is allowing content creators to chain method calls.</p>

<div class=example>
<p>The following code example:</p>

<pre><code>var matrix = new DOMMatrix();
matrix.translateSelf(20, 20);
matrix.scaleSelf(2);
matrix.translateSelf(-20, -20);
</code></pre>

<p>is equivalent to:</p>

<pre><code>var matrix = new DOMMatrix();
matrix.translateSelf(20, 20).scaleSelf(2).translateSelf(-20, -20);
</code></pre>
</div>

<p class=note>Note: Authors who use chained method calls are recommended to use mutable transformation methods to avoid unnecessary memory allocations due to creation of intermediate DOMMatrix objects in User Agents.</p>

<dl data-dfn-for=DOMMatrix data-dfn-type=method>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrix data-dfn-type=method data-export="" id=dom-dommatrix-multiplyself title=multiplySelf()>multiplySelf(<var>other</var>)<a class=self-link href=#dom-dommatrix-multiplyself></a></dfn></dt>
  <dd>
    <ol>
      <li>The <em>other</em> matrix gets post-multiplied to the current matrix.</li>
      <li>If <a data-link-type=dfn href=#is2d title=is2D>is2D</a> of <em>other</em> is <span class=css>false</span>, set <a data-link-type=dfn href=#is2d title=is2D>is2D</a> of the current matrix to <span class=css>false</span>.</li>
      <li>Return the current matrix.</li>
    </ol>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrix data-dfn-type=method data-export="" id=dom-dommatrix-premultiplyself title=preMultiplySelf()>preMultiplySelf(<var>other</var>)<a class=self-link href=#dom-dommatrix-premultiplyself></a></dfn></dt>
  <dd>
    <ol>
      <li>The <em>other</em> matrix gets pre-multiplied to the current matrix.</li>
      <li>If <a data-link-type=dfn href=#is2d title=is2D>is2D</a> of <em>other</em> is <span class=css>false</span>, set <a data-link-type=dfn href=#is2d title=is2D>is2D</a> of the current matrix to <span class=css>false</span>.</li>
      <li>Return the current matrix.</li>
    </ol>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrix data-dfn-type=method data-export="" id=dom-dommatrix-translateself title=translateSelf()>translateSelf(<var>tx</var>, <var>ty</var>, <var>tz</var>)<a class=self-link href=#dom-dommatrix-translateself></a></dfn></dt>
  <dd>
    <ol>
      <li>Post-multiply a translation transformation on the current matrix. The 3D translation matrix is <a href=http://www.w3.org/TR/2012/WD-css3-transforms-20120911/#Translate3dDefined>described</a> in CSS Transforms <a data-biblio-type=normative data-link-type=biblio href=#biblio-css3-transforms title=CSS3-TRANSFORMS>[CSS3-TRANSFORMS]</a>.<p></p>
      <li>If <em>tz</em> is specified and not <span class=css>0</span>, set <a data-link-type=dfn href=#is2d title=is2D>is2D</a> of the current matrix to <span class=css>false</span>.<p></p>
      <li>Return the current matrix.</li>
    </ol>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrix data-dfn-type=method data-export="" id=dom-dommatrix-scaleself title=scaleSelf()>scaleSelf(<var>scale</var>, <var>originX</var>, <var>originY</var>)<a class=self-link href=#dom-dommatrix-scaleself></a></dfn></dt>
  <dd>
    <ol>
      <li>Apply a <a class=idl-code data-link-type=method href=#dom-dommatrix-translateself title=translateSelf()>translateSelf(<var>originX</var>, <var>originY</var>)</a> transformation to the current matrix.</li>
      <li>Post-multiply a uniform 2D scale transformation (<a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m11 title=m11>m11</a> = <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m22 title=m22>m22</a> = <em>scale</em>) on the current matrix. The 2D scale matrix is <a href=http://www.w3.org/TR/2012/WD-css3-transforms-20120911/#ScaleDefined>described</a> in CSS Transforms with <em>sx</em> = <em>sy</em> = <em>scale</em>. <a data-biblio-type=normative data-link-type=biblio href=#biblio-css3-transforms title=CSS3-TRANSFORMS>[CSS3-TRANSFORMS]</a>.</li>
      <li>Apply a <a class=idl-code data-link-type=method href=#dom-dommatrix-translateself title=translateSelf()>translateSelf(-<var>originX</var>, -<var>originY</var>)</a> transformation to the current matrix.</li>
      <li>Return the current matrix.</li>
    </ol>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrix data-dfn-type=method data-export="" id=dom-dommatrix-scale3dself title=scale3dSelf()>scale3dSelf(<var>scale</var>, <var>originX</var>, <var>originY</var>, <var>originZ</var>)<a class=self-link href=#dom-dommatrix-scale3dself></a></dfn></dt>
  <dd>
    <ol>
      <li>Apply a <a class=idl-code data-link-type=method href=#dom-dommatrix-translateself title=translateSelf()>translateSelf(<var>originX</var>, <var>originY</var>, <var>originZ</var>)</a> transformation to the current matrix.</li>
      <li>Post-multiply a uniform 3D scale transformation (<a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m11 title=m11>m11</a> = <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m22 title=m22>m22</a> = <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m33 title=m33>m33</a> = <em>scale</em>) on the current matrix. The 3D scale matrix is <a href=http://www.w3.org/TR/2012/WD-css3-transforms-20120911/#Scale3dDefined>described</a> in CSS Transforms with <em>sx</em> = <em>sy</em> = <em>sz</em> = <em>scale</em>. <a data-biblio-type=normative data-link-type=biblio href=#biblio-css3-transforms title=CSS3-TRANSFORMS>[CSS3-TRANSFORMS]</a>.</li>
      <li>Apply a <a class=idl-code data-link-type=method href=#dom-dommatrix-translateself title=translateSelf()>translateSelf(-<var>originX</var>, -<var>originY</var>, -<var>originZ</var>)</a> transformation to the current matrix.</li>
      <li>If <em>scale</em> is not <span class=css>1</span>, set <a data-link-type=dfn href=#is2d title=is2D>is2D</a> of the current matrix to <span class=css>false</span>.</li>
      <li>Return the current matrix.</li>
    </ol>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrix data-dfn-type=method data-export="" id=dom-dommatrix-scalenonuniformself title=scaleNonUniformSelf()>scaleNonUniformSelf(<var>scaleX</var>, <var>scaleY</var>, <var>scaleZ</var>, <var>originX</var>, <var>originY</var>, <var>originZ</var>)<a class=self-link href=#dom-dommatrix-scalenonuniformself></a></dfn></dt>
  <dd>
    <ol>
      <li>Apply a <a class=idl-code data-link-type=method href=#dom-dommatrix-translateself title=translateSelf()>translateSelf(<var>originX</var>, <var>originY</var>, <var>originZ</var>)</a> transformation to the current matrix.</li>
      <li>Post-multiply a non-uniform scale transformation on the current matrix. The 3D scale matrix is <a href=http://www.w3.org/TR/2012/WD-css3-transforms-20120911/#Scale3dDefined>described</a> in CSS Transforms with <em>sx</em> = <em>scaleX</em>,  <em>sy</em> = <em>scaleY</em> and <em>sz</em> = <em>scaleZ</em>. <a data-biblio-type=normative data-link-type=biblio href=#biblio-css3-transforms title=CSS3-TRANSFORMS>[CSS3-TRANSFORMS]</a>.</li>
      <li>Apply a <a class=idl-code data-link-type=method href=#dom-dommatrix-translateself title=translateSelf()>translateSelf(-<var>originX</var>, -<var>originY</var>, -<var>originZ</var>)</a> transformation to the current matrix.</li>
      <li>If <em>scaleZ</em> is specified and not <span class=css>1</span> or <em>originZ</em> is specified and not <span class=css>0</span>, set <a data-link-type=dfn href=#is2d title=is2D>is2D</a> of the current matrix to <span class=css>false</span>.</li>
      <li>Return the current matrix.</li>
    </ol>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrix data-dfn-type=method data-export="" id=dom-dommatrix-rotateself title=rotateSelf()>rotateSelf(<var>angle</var>, <var>originX</var>, <var>originY</var>)<a class=self-link href=#dom-dommatrix-rotateself></a></dfn></dt>
  <dd>
    <ol>
      <li>Apply a <a class=idl-code data-link-type=method href=#dom-dommatrix-translateself title=translateSelf()>translateSelf(<var>originX</var>, <var>originY</var>)</a> transformation to the current matrix.</li>
      <li>Post-multiply a rotation transformation on the current matrix with the specified rotation <em>angle</em> in degrees. The 2D rotation matrix is <a href=http://www.w3.org/TR/2012/WD-css3-transforms-20120911/#RotateDefined>described</a> in CSS Transforms with <em>alpha</em> = <em>angle</em> in degrees. <a data-biblio-type=normative data-link-type=biblio href=#biblio-css3-transforms title=CSS3-TRANSFORMS>[CSS3-TRANSFORMS]</a>.</li>
      <li>Apply a <a class=idl-code data-link-type=method href=#dom-dommatrix-translateself title=translateSelf()>translateSelf(-<var>originX</var>, -<var>originY</var>)</a> transformation to the current matrix.</li>
      <li>Return the current matrix.</li>
    </ol>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrix data-dfn-type=method data-export="" id=dom-dommatrix-rotatefromvectorself title=rotateFromVectorSelf()>rotateFromVectorSelf(<var>x</var>, <var>y</var>)<a class=self-link href=#dom-dommatrix-rotatefromvectorself></a></dfn></dt>
  <dd>
    <ol>
      <li>Post-multiply a rotation transformation on the current matrix. The rotation angle is determined by the angle between the vector (1,0)<sup>T</sup> and (<em>x</em>,<em>y</em>)<sup>T</sup> in the clockwise direction. If <em>x</em> and <em>y</em> should both be zero, the angle is specified as zero. The 2D rotation matrix is <a href=http://www.w3.org/TR/2012/WD-css3-transforms-20120911/#RotateDefined>described</a> in CSS Transforms where <code>alpha</code> is the angle between the vector (1,0)<sup>T</sup> and (<em>x</em>,<em>y</em>)<sup>T</sup> in degrees <a data-biblio-type=normative data-link-type=biblio href=#biblio-css3-transforms title=CSS3-TRANSFORMS>[CSS3-TRANSFORMS]</a>.</li>
      <li>Return the current matrix.</li>
    </ol>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrix data-dfn-type=method data-export="" id=dom-dommatrix-rotateaxisangleself title=rotateAxisAngleSelf()>rotateAxisAngleSelf(<var>x</var>, <var>y</var>, <var>z</var>, <var>angle</var>)<a class=self-link href=#dom-dommatrix-rotateaxisangleself></a></dfn></dt>
  <dd>
    <ol>
      <li>Post-multiply a rotation transformation on the current matrix around the specified vector <em>x</em>, <em>y</em>, <em>z</em> by the specified rotation <em>angle</em> in degrees. The 3D rotation matrix is <a href=http://www.w3.org/TR/2012/WD-css3-transforms-20120911/#Rotate3dDefined>described</a> in CSS Transforms with <em>alpha</em> = <em>angle</em> in degrees <a data-biblio-type=normative data-link-type=biblio href=#biblio-css3-transforms title=CSS3-TRANSFORMS>[CSS3-TRANSFORMS]</a>.</li>
      <li>If <em>x</em> or <em>y</em> are not <span class=css>0</span>, set <a data-link-type=dfn href=#is2d title=is2D>is2D</a> of the current matrix to <span class=css>false</span>.</li>
      <li>Return the current matrix.</li>
    </ol>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrix data-dfn-type=method data-export="" id=dom-dommatrix-skewxself title=skewXSelf()>skewXSelf(<var>sx</var>)<a class=self-link href=#dom-dommatrix-skewxself></a></dfn></dt>
  <dd>
    <ol>
      <li>Post-multiply a skewX transformation on the current matrix by the specified angle <em>sx</em> in degrees. The 2D skewX matrix is <a href=http://www.w3.org/TR/2012/WD-css3-transforms-20120911/#SkewXDefined>described</a> in CSS Transforms with <em>alpha</em> = <em>sx</em> in degrees <a data-biblio-type=normative data-link-type=biblio href=#biblio-css3-transforms title=CSS3-TRANSFORMS>[CSS3-TRANSFORMS]</a>.</li>
      <li>Return the current matrix.</li>
    </ol>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrix data-dfn-type=method data-export="" id=dom-dommatrix-skewyself title=skewYSelf()>skewYSelf(<var>sy</var>)<a class=self-link href=#dom-dommatrix-skewyself></a></dfn></dt>
  <dd>
    <ol>
      <li>Post-multiply a skewX transformation on the current matrix by the specified angle <em>sy</em> in degrees. The 2D skewY matrix is <a href=http://www.w3.org/TR/2012/WD-css3-transforms-20120911/#SkewYDefined>described</a> in CSS Transforms with <em>beta</em> = <em>sy</em> in degrees <a data-biblio-type=normative data-link-type=biblio href=#biblio-css3-transforms title=CSS3-TRANSFORMS>[CSS3-TRANSFORMS]</a>.</li>
      <li>Return the current matrix.</li>
    </ol>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrix data-dfn-type=method data-export="" id=dom-dommatrix-invertself>invertSelf()<a class=self-link href=#dom-dommatrix-invertself></a></dfn></dt>
  <dd>
    <ol>
      <li>Invert the current matrix.</li>
      <li>If the current matrix is not invertible set all attributes to <span class=css>NaN</span> and set <a data-link-type=dfn href=#is2d title=is2D>is2D</a> to <span class=css>false</span>.</li>
      <li>Return the current matrix.</li>
    </ol>
  </dd>
  <dt><dfn class=idl-code data-dfn-for=DOMMatrix data-dfn-type=method data-export="" id=dom-dommatrix-setmatrixvalue title=setMatrixValue()>setMatrixValue(<var>transformList</var>)<a class=self-link href=#dom-dommatrix-setmatrixvalue></a></dfn></dt>
  <dd>
    <ol>
      <li>Parse <var>transformList</var> by following the syntax description in “<a href=http://www.w3.org/TR/css-transforms-1/#svg-syntax>Syntax of the SVG ‘transform’ attribute</a>” <a data-biblio-type=normative data-link-type=biblio href=#biblio-css3-transforms title=CSS3-TRANSFORMS>[CSS3-TRANSFORMS]</a> to a <a class="production css" data-link-type=type href=http://www.w3.org/TR/css-transforms-1/#typedef-transform-list title="<transform-list>">&lt;transform-list&gt;</a>. If parsing is not successful or any <a class="production css" data-link-type=type href=http://www.w3.org/TR/css-transforms-1/#typedef-transform-function title="<transform-function>">&lt;transform-function&gt;</a> has <a class="production css" data-link-type=type href=http://www.w3.org/TR/css3-values/#length-value title="<length>">&lt;length&gt;</a> values without <a data-link-spec=css-values data-link-type=dfn href=http://dev.w3.org/csswg/css-values-3/#absolute-length title="absolute length">absolute length</a> units, throw a <a data-link-spec=html5 data-link-type=dfn href=https://html.spec.whatwg.org/#js-syntaxerror title=SyntaxError>SyntaxError</a> exception.</li>
      <li>Set <a data-link-type=dfn href=#is2d title=is2D>is2D</a> to <span class=css>false</span> if the <a class="production css" data-link-type=type href=http://www.w3.org/TR/css-transforms-1/#typedef-transform-list title="<transform-list>">&lt;transform-list&gt;</a> consists of any <a href=http://www.w3.org/TR/css-transforms-1/#three-d-transform-functions>3D Transform functions</a>. Otherwise set <a data-link-type=dfn href=#is2d title=is2D>is2D</a> to <span class=css>true</span>.</li>
      <li>Transform all <a class="production css" data-link-type=type href=http://www.w3.org/TR/css-transforms-1/#typedef-transform-function title="<transform-function>">&lt;transform-function&gt;</a>s to 4x4 matrices by following the “<a href=http://www.w3.org/TR/css-transforms-1/#mathematical-description>Mathematical Description of Transform Functions</a>” <a data-biblio-type=normative data-link-type=biblio href=#biblio-css3-transforms title=CSS3-TRANSFORMS>[CSS3-TRANSFORMS]</a>.</li>
      <li>Post-multiply all matrices from left to right to a combined 4x4 matrix.</li>
      <li>Set the <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m11 title=m11>m11</a> to <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-dommatrix-m44 title=m44>m44</a> attributes to the element values of the 4x4 matrix in column-major order.</li>
      <li>Return the current matrix.</li>
    </ol>
  </dd>
</dl>

<h2 class="heading settled" data-level=7 id=cloning><span class=secno>7. </span><span class=content>Cloning</span><a class=self-link href=#cloning></a></h2>

<p>When a user agent is asked to <b>clone</b> an <a class=idl-code data-link-type=interface href=#dom-dompointreadonly title=DOMPointReadOnly>DOMPointReadOnly</a>, <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a>, <a class=idl-code data-link-type=interface href=#dom-domrectreadonly title=DOMRectReadOnly>DOMRectReadOnly</a>, <a class=idl-code data-link-type=interface href=#dom-domrect title=DOMRect>DOMRect</a>, <a class=idl-code data-link-type=interface href=#dom-domquad title=DOMQuad>DOMQuad</a>, <a class=idl-code data-link-type=interface href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> or <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> object <var>old</var>, it must run the following steps, which return a new object of same type. These steps must be run atomically.</p>

<ol>
<li>Create a new object <var>new</var> of the same type as <var>old</var>. Copy all member variable values from <var>old</var> to <var>new</var>.
<li>Return <var>new</var>. It is the clone.
</ol>

<p>The above algorithm follows the <a href=http://www.w3.org/TR/html5/infrastructure.html#safe-passing-of-structured-data>“safe passing of structured data”</a> <a data-biblio-type=normative data-link-type=biblio href=#biblio-html5 title=HTML5>[HTML5]</a> definitions.</p>

<h2 class="no-num heading settled" id=changes><span class=content>Changes since last publication</span><a class=self-link href=#changes></a></h2>

<p>The following changes were made since the <a href=http://www.w3.org/TR/2014/WD-geometry-1-20140918/>18 September 2014 Working Draft</a>.</p>

<ul>
  <li>Exposed <a class=idl-code data-link-type=interface href=#dom-dompointreadonly title=DOMPointReadOnly>DOMPointReadOnly</a>, <a class=idl-code data-link-type=interface href=#dom-dompoint title=DOMPoint>DOMPoint</a>, <a class=idl-code data-link-type=interface href=#dom-domrectreadonly title=DOMRectReadOnly>DOMRectReadOnly</a>, <a class=idl-code data-link-type=interface href=#dom-domrect title=DOMRect>DOMRect</a>, <a class=idl-code data-link-type=interface href=#dom-domquad title=DOMQuad>DOMQuad</a>, <a class=idl-code data-link-type=interface href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> and <a class=idl-code data-link-type=interface href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> to <code>Window</code> and <code>Worker</code>. Defined cloning of the interfaces.</li>
</ul>

<p>The following changes were made since the <a href=http://www.w3.org/TR/2014/WD-geometry-1-20140626/>26 June 2014 Last Call Public Working Draft</a>.</p>

<ul>
  <li><a class=idl-code data-link-type=interface href=#dom-dompointreadonly title=DOMPointReadOnly>DOMPointReadOnly</a> got a constructor taking 4 arguments.</li>
  <li><a class=idl-code data-link-type=interface href=#dom-domrectreadonly title=DOMRectReadOnly>DOMRectReadOnly</a> got a constructor taking 4 arguments.</li>
  <li><a class=idl-code data-link-type=interface href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> got a constructor taking a sequence of numbers as argument.</li>
  <li><a class=idl-code data-link-type=interface href=#dom-domrectlist title=DOMRectList>DOMRectList</a> turned to an ArrayClass. The interfaces must just be used for legacy interfaces.</li>
  <li>Put <a class=idl-code data-link-type=interface href=#dom-domrectlist title=DOMRectList>DOMRectList</a> on at-Risk awaiting browser feedback.</li>
  <li>All interfaces are described in the sense of internal elements to describe the read-only/writable and inheriting behavior.</li>
  <li>Replace IndexSizeError exception with TypeError.</li>
</ul>

<p>The following changes were made since the <a href=http://www.w3.org/TR/2014/WD-geometry-1-20140522/>22 May 2014 First Public Working Draft</a>.</p>

<ul>
  <li>Renamed mutable transformation methods *By to *Self. (E.g. translateBy() got to translateSelf().)</li>
  <li>Renamed invert() to <a data-link-type=functionish href=#dom-dommatrix-invertself title=invertSelf()>invertSelf()</a>.</li>
  <li>Added <a data-link-type=functionish href=#dom-dommatrix-setmatrixvalue title=setMatrixValue()>setMatrixValue()</a> which takes a transformation list as DOMString.</li>
  <li><a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-is2d title=is2D>is2D</a> and <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-isidentity title=isIdentity>isIdentity</a> are read-only attributes now.</li>
  <li><a class=idl-code data-link-type=interface href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> gets flagged to track 3D transformation and attribute settings for <a class=idl-code data-link-type=attribute href=#dom-dommatrixreadonly-is2d title=is2D>is2D</a>.</li>
  <li><a data-link-type=functionish href=#dom-dommatrix-invertself title=invertSelf()>invertSelf()</a> and <a data-link-type=functionish href=#dom-dommatrixreadonly-inverse title=inverse()>inverse()</a> do not throw exceptions anymore.</li>
</ul>

<h2 class="no-num heading settled" id=acknowledgments><span class=content>Acknowledgments</span><a class=self-link href=#acknowledgments></a></h2>

<p>The editors would like to thank Robert O’Callahan for contributing to this specification. Many thanks to Dean Jackson for his initial proposal of DOMMatrix. Thanks to Brian Birtles, Benoit Jacob, Cameron McCormack, Kari Pihkala, Adenilson Cavalcanti, Boris Zbarsky and Max Vujovic for their careful reviews, comments, and corrections.</p>

<h2 class="no-ref no-num heading settled" id=conformance><span class=content>
Conformance</span><a class=self-link href=#conformance></a></h2>

<h3 class="no-ref heading settled" id=conventions><span class=content>
Document conventions</span><a class=self-link href=#conventions></a></h3>

    <p>Conformance requirements are expressed with a combination of
    descriptive assertions and RFC 2119 terminology. The key words "MUST",
    "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT",
    "RECOMMENDED", "MAY", and "OPTIONAL" in the normative parts of this
    document are to be interpreted as described in RFC 2119.
    However, for readability, these words do not appear in all uppercase
    letters in this specification.

    <p>All of the text of this specification is normative except sections
    explicitly marked as non-normative, examples, and notes. <a data-biblio-type=normative data-link-type=biblio href=#biblio-rfc2119 title=RFC2119>[RFC2119]</a></p>

    <p>Examples in this specification are introduced with the words "for example"
    or are set apart from the normative text with <code>class="example"</code>,
    like this:

    <div class=example>
        <p>This is an example of an informative example.</p>
    </div>

    <p>Informative notes begin with the word "Note" and are set apart from the
    normative text with <code>class="note"</code>, like this:

    <p class=note>Note, this is an informative note.</p>

    <p>Advisements are normative sections styled to evoke special attention and are
    set apart from other normative text with <code>&lt;strong class="advisement"&gt;</code>, like
    this:

    <strong class=advisement>
        UAs MUST provide an accessible alternative.
    </strong>

<h3 class="no-ref heading settled" id=conformance-classes><span class=content>
Conformance classes</span><a class=self-link href=#conformance-classes></a></h3>

    <p>Conformance to this specification
    is defined for three conformance classes:
    <dl>
        <dt>style sheet
            <dd>A <a href=http://www.w3.org/TR/CSS21/conform.html#style-sheet>CSS
            style sheet</a>.
        <dt>renderer
            <dd>A <a href=http://www.w3.org/TR/CSS21/conform.html#user-agent>UA</a>
            that interprets the semantics of a style sheet and renders
            documents that use them.
        <dt>authoring tool
            <dd>A <a href=http://www.w3.org/TR/CSS21/conform.html#user-agent>UA</a>
            that writes a style sheet.
    </dl>

    <p>A style sheet is conformant to this specification
    if all of its statements that use syntax defined in this module are valid
    according to the generic CSS grammar and the individual grammars of each
    feature defined in this module.

    <p>A renderer is conformant to this specification
    if, in addition to interpreting the style sheet as defined by the
    appropriate specifications, it supports all the features defined
    by this specification by parsing them correctly
    and rendering the document accordingly. However, the inability of a
    UA to correctly render a document due to limitations of the device
    does not make the UA non-conformant. (For example, a UA is not
    required to render color on a monochrome monitor.)

    <p>An authoring tool is conformant to this specification
    if it writes style sheets that are syntactically correct according to the
    generic CSS grammar and the individual grammars of each feature in
    this module, and meet all other conformance requirements of style sheets
    as described in this module.

<h3 class="no-ref heading settled" id=partial><span class=content>
Partial implementations</span><a class=self-link href=#partial></a></h3>

    <p>So that authors can exploit the forward-compatible parsing rules to
    assign fallback values, CSS renderers <strong>must</strong>
    treat as invalid (and <a href=http://www.w3.org/TR/CSS21/conform.html#ignore>ignore
    as appropriate</a>) any at-rules, properties, property values, keywords,
    and other syntactic constructs for which they have no usable level of
    support. In particular, user agents <strong>must not</strong> selectively
    ignore unsupported component values and honor supported values in a single
    multi-value property declaration: if any value is considered invalid
    (as unsupported values must be), CSS requires that the entire declaration
    be ignored.</p>

<h3 class="no-ref heading settled" id=experimental><span class=content>
Experimental implementations</span><a class=self-link href=#experimental></a></h3>

    <p>To avoid clashes with future CSS features, the CSS2.1 specification
    reserves a <a href=http://www.w3.org/TR/CSS21/syndata.html#vendor-keywords>prefixed
    syntax</a> for proprietary and experimental extensions to CSS.

    <p>Prior to a specification reaching the Candidate Recommendation stage
    in the W3C process, all implementations of a CSS feature are considered
    experimental. The CSS Working Group recommends that implementations
    use a vendor-prefixed syntax for such features, including those in
    W3C Working Drafts. This avoids incompatibilities with future changes
    in the draft.
    </p>

<h3 class="no-ref heading settled" id=testing><span class=content>
Non-experimental implementations</span><a class=self-link href=#testing></a></h3>

    <p>Once a specification reaches the Candidate Recommendation stage,
    non-experimental implementations are possible, and implementors should
    release an unprefixed implementation of any CR-level feature they
    can demonstrate to be correctly implemented according to spec.

    <p>To establish and maintain the interoperability of CSS across
    implementations, the CSS Working Group requests that non-experimental
    CSS renderers submit an implementation report (and, if necessary, the
    testcases used for that implementation report) to the W3C before
    releasing an unprefixed implementation of any CSS features. Testcases
    submitted to W3C are subject to review and correction by the CSS
    Working Group.

    <p>Further information on submitting testcases and implementation reports
    can be found from on the CSS Working Group’s website at
    <a href=http://www.w3.org/Style/CSS/Test/>http://www.w3.org/Style/CSS/Test/</a>.
    Questions should be directed to the
    <a href=http://lists.w3.org/Archives/Public/public-css-testsuite>public-css-testsuite@w3.org</a>
    mailing list.

<h3 class="no-ref heading settled" id=cr-exit-criteria><span class=content>
CR exit criteria</span><a class=self-link href=#cr-exit-criteria></a></h3>

    <p>
    For this specification to be advanced to Proposed Recommendation,
    there must be at least two independent, interoperable implementations
    of each feature. Each feature may be implemented by a different set of
    products, there is no requirement that all features be implemented by
    a single product. For the purposes of this criterion, we define the
    following terms:

    <dl>
        <dt>independent <dd>each implementation must be developed by a
        different party and cannot share, reuse, or derive from code
        used by another qualifying implementation. Sections of code that
        have no bearing on the implementation of this specification are
        exempt from this requirement.

        <dt>interoperable <dd>passing the respective test case(s) in the
        official CSS test suite, or, if the implementation is not a Web
        browser, an equivalent test. Every relevant test in the test
        suite should have an equivalent test created if such a user
        agent (UA) is to be used to claim interoperability. In addition
        if such a UA is to be used to claim interoperability, then there
        must one or more additional UAs which can also pass those
        equivalent tests in the same way for the purpose of
        interoperability. The equivalent tests must be made publicly
        available for the purposes of peer review.

        <dt>implementation <dd>a user agent which:

        <ol class=inline>
            <li>implements the specification.

            <li>is available to the general public. The implementation may
            be a shipping product or other publicly available version
            (i.e., beta version, preview release, or "nightly build").
            Non-shipping product releases must have implemented the
            feature(s) for a period of at least one month in order to
            demonstrate stability.

            <li>is not experimental (i.e., a version specifically designed
            to pass the test suite and is not intended for normal usage
            going forward).
        </ol>
    </dl>

    <p>The specification will remain Candidate Recommendation for at least
    six months.




<h2 class="no-num heading settled" id=references><span class=content>References</span><a class=self-link href=#references></a></h2><h3 class="no-num heading settled" id=normative><span class=content>Normative References</span><a class=self-link href=#normative></a></h3><dl><dt id=biblio-css3-transforms title=CSS3-TRANSFORMS><a class=self-link href=#biblio-css3-transforms></a>[CSS3-TRANSFORMS]<dd>Simon Fraser; et al. <a href=http://www.w3.org/TR/2012/WD-css3-transforms-20120911/>CSS Transforms</a>. 11 September 2012. W3C Working Draft. (Work in progress.) URL: <a href=http://www.w3.org/TR/2012/WD-css3-transforms-20120911/>http://www.w3.org/TR/2012/WD-css3-transforms-20120911/</a><dt id=biblio-webidl title=WebIDL><a class=self-link href=#biblio-webidl></a>[WebIDL]<dd>Cameron McCormack. <a href=http://www.w3.org/TR/WebIDL/>Web IDL</a>. 19 April 2012. CR. URL: <a href=http://www.w3.org/TR/WebIDL/>http://www.w3.org/TR/WebIDL/</a><dt id=biblio-html5 title=html5><a class=self-link href=#biblio-html5></a>[html5]<dd>Robin Berjon; et al. <a href=http://www.w3.org/TR/html5/>HTML5</a>. 16 September 2014. PR. URL: <a href=http://www.w3.org/TR/html5/>http://www.w3.org/TR/html5/</a><dt id=biblio-rfc2119 title=rfc2119><a class=self-link href=#biblio-rfc2119></a>[rfc2119]<dd>S. Bradner. <a href=http://www.ietf.org/rfc/rfc2119.txt>Key words for use in RFCs to Indicate Requirement Levels</a>. March 1997. Best Current Practice. URL: <a href=http://www.ietf.org/rfc/rfc2119.txt>http://www.ietf.org/rfc/rfc2119.txt</a></dl><h3 class="no-num heading settled" id=informative><span class=content>Informative References</span><a class=self-link href=#informative></a></h3><dl><dt id=biblio-2dcontext title=2dcontext><a class=self-link href=#biblio-2dcontext></a>[2dcontext]<dd>Rik Cabanier; et al. <a href=http://www.w3.org/TR/2dcontext/>HTML Canvas 2D Context</a>. 21 August 2014. CR. URL: <a href=http://www.w3.org/TR/2dcontext/>http://www.w3.org/TR/2dcontext/</a><dt id=biblio-svg11 title=SVG11><a class=self-link href=#biblio-svg11></a>[SVG11]<dd>Erik Dahlström; et al. <a href=http://www.w3.org/TR/SVG11/>Scalable Vector Graphics (SVG) 1.1 (Second Edition)</a>. 16 August 2011. REC. URL: <a href=http://www.w3.org/TR/SVG11/>http://www.w3.org/TR/SVG11/</a><dt id=biblio-typedarray title=typedarray><a class=self-link href=#biblio-typedarray></a>[typedarray]<dd>David Herman; Kenneth Russell. <a href=https://www.khronos.org/registry/typedarray/specs/latest/>Typed Array Specification</a>. Khronos Working Draft. URL: <a href=https://www.khronos.org/registry/typedarray/specs/latest/>https://www.khronos.org/registry/typedarray/specs/latest/</a></dl><h2 class="no-num heading settled" id=index><span class=content>Index</span><a class=self-link href=#index></a></h2><ul class=indexlist><li>a, <a href=#dom-dommatrixreadonly-dommatrix-a title="section 6.3">6.3</a><li>angle<ul><li>argument for DOMMatrixReadOnly/rotate(), <a href=#dom-dommatrixreadonly-rotate-angle title="section 6">6</a><li>argument for DOMMatrixReadOnly/rotateAxisAngle(), <a href=#dom-dommatrixreadonly-rotateaxisangle-angle title="section 6">6</a><li>argument for DOMMatrix/rotateSelf(), <a href=#dom-dommatrix-rotateself-angle title="section 6">6</a><li>argument for DOMMatrix/rotateAxisAngleSelf(), <a href=#dom-dommatrix-rotateaxisangleself-angle title="section 6">6</a></ul><li>array32, <a href=#dom-dommatrix-dommatrix-array32 title="section 6">6</a><li>array64, <a href=#dom-dommatrix-dommatrix-array64 title="section 6">6</a><li>associated bounding rectangle, <a href=#associated-bounding-rectangle title="section 5">5</a><li>b, <a href=#dom-dommatrixreadonly-dommatrix-b title="section 6.3">6.3</a><li>bottom, <a href=#dom-domrectreadonly-domrect-bottom title="section 3">3</a><li>bounds, <a href=#dom-domquad-bounds title="section 5">5</a><li>c, <a href=#dom-dommatrixreadonly-dommatrix-c title="section 6.3">6.3</a><li>d, <a href=#dom-dommatrixreadonly-dommatrix-d title="section 6.3">6.3</a><li>DOMMatrix(), <a href=#dom-dommatrix-dommatrix title="section 6.2">6.2</a><li>DOMMatrix, <a href=#dom-dommatrix title="section 6">6</a><li>DOMMatrixReadOnly(), <a href=#dom-dommatrixreadonly-dommatrixreadonly title="section 6.1">6.1</a><li>DOMMatrixReadOnly, <a href=#dom-dommatrixreadonly title="section 6">6</a><li>DOMPoint(), <a href=#dom-dompoint-dompoint title="section 2">2</a><li>DOMPoint, <a href=#dom-dompoint title="section 2">2</a><li>DOMPointInit, <a href=#dictdef-dompointinit title="section 2">2</a><li>DOMPointReadOnly, <a href=#dom-dompointreadonly title="section 2">2</a><li>DOMPointReadOnly(), <a href=#dom-dompointreadonly-dompointreadonly title="section 2">2</a><li>DOMQuad(), <a href=#dom-domquad-domquad title="section 5">5</a><li>DOMQuad, <a href=#dom-domquad title="section 5">5</a><li>DOMRect, <a href=#dom-domrect title="section 3">3</a><li>DOMRect(), <a href=#dom-domrect-domrect title="section 3">3</a><li>DOMRectInit, <a href=#dictdef-domrectinit title="section 3">3</a><li>DOMRectList, <a href=#dom-domrectlist title="section 4">4</a><li>DOMRectReadOnly(), <a href=#dom-domrect-domrectreadonly title="section 3">3</a><li>DOMRectReadOnly, <a href=#dom-domrectreadonly title="section 3">3</a><li>e, <a href=#dom-dommatrixreadonly-dommatrix-e title="section 6.3">6.3</a><li>f, <a href=#dom-dommatrixreadonly-dommatrix-f title="section 6.3">6.3</a><li>flipX(), <a href=#dom-dommatrixreadonly-flipx title="section 6.4">6.4</a><li>flipY(), <a href=#dom-dommatrixreadonly-flipy title="section 6.4">6.4</a><li>height<ul><li>argument for DOMRectReadOnly/DOMRectReadOnly(), <a href=#dom-domrectreadonly-domrectreadonly-height title="section 3">3</a><li>dict-member for DOMRectInit, <a href=#dom-domrectinit-height title="section 3">3</a><li>attribute for DOMRectReadOnly, DOMRect, <a href=#dom-domrectreadonly-domrect-height title="section 3">3</a></ul><li>height dimension, <a href=#height-dimension title="section 3">3</a><li>index, <a href=#dom-domrectlist-item-index title="section 4">4</a><li>inverse(), <a href=#dom-dommatrixreadonly-inverse title="section 6.4">6.4</a><li>invertSelf(), <a href=#dom-dommatrix-invertself title="section 6.5">6.5</a><li>is2D<ul><li>attribute for DOMMatrixReadOnly, <a href=#dom-dommatrixreadonly-is2d title="section 6.3">6.3</a><li>definition of, <a href=#is2d title="section 6.3">6.3</a></ul><li>isIdentity, <a href=#dom-dommatrixreadonly-isidentity title="section 6.3">6.3</a><li>item(), <a href=#dom-domrectlist-item title="section 4">4</a><li>left, <a href=#dom-domrectreadonly-domrect-left title="section 3">3</a><li>length, <a href=#dom-domrectlist-length title="section 4">4</a><li>m11, <a href=#dom-dommatrixreadonly-dommatrix-m11 title="section 6.3">6.3</a><li>m11 element, <a href=#m11-element title="section 6">6</a><li>m12, <a href=#dom-dommatrixreadonly-dommatrix-m12 title="section 6.3">6.3</a><li>m12 element, <a href=#m12-element title="section 6">6</a><li>m13, <a href=#dom-dommatrixreadonly-dommatrix-m13 title="section 6.3">6.3</a><li>m13 element, <a href=#m13-element title="section 6">6</a><li>m14, <a href=#dom-dommatrixreadonly-dommatrix-m14 title="section 6.3">6.3</a><li>m14 element, <a href=#m14-element title="section 6">6</a><li>m21, <a href=#dom-dommatrixreadonly-dommatrix-m21 title="section 6.3">6.3</a><li>m21 element, <a href=#m21-element title="section 6">6</a><li>m22, <a href=#dom-dommatrixreadonly-dommatrix-m22 title="section 6.3">6.3</a><li>m22 element, <a href=#m22-element title="section 6">6</a><li>m23, <a href=#dom-dommatrixreadonly-dommatrix-m23 title="section 6.3">6.3</a><li>m23 element, <a href=#m23-element title="section 6">6</a><li>m24, <a href=#dom-dommatrixreadonly-dommatrix-m24 title="section 6.3">6.3</a><li>m24 element, <a href=#m24-element title="section 6">6</a><li>m31, <a href=#dom-dommatrixreadonly-dommatrix-m31 title="section 6.3">6.3</a><li>m31 element, <a href=#m31-element title="section 6">6</a><li>m32, <a href=#dom-dommatrixreadonly-dommatrix-m32 title="section 6.3">6.3</a><li>m32 element, <a href=#m32-element title="section 6">6</a><li>m33, <a href=#dom-dommatrixreadonly-dommatrix-m33 title="section 6.3">6.3</a><li>m33 element, <a href=#m33-element title="section 6">6</a><li>m34, <a href=#dom-dommatrixreadonly-dommatrix-m34 title="section 6.3">6.3</a><li>m34 element, <a href=#m34-element title="section 6">6</a><li>m41, <a href=#dom-dommatrixreadonly-dommatrix-m41 title="section 6.3">6.3</a><li>m41 element, <a href=#m41-element title="section 6">6</a><li>m42, <a href=#dom-dommatrixreadonly-dommatrix-m42 title="section 6.3">6.3</a><li>m42 element, <a href=#m42-element title="section 6">6</a><li>m43, <a href=#dom-dommatrixreadonly-dommatrix-m43 title="section 6.3">6.3</a><li>m43 element, <a href=#m43-element title="section 6">6</a><li>m44, <a href=#dom-dommatrixreadonly-dommatrix-m44 title="section 6.3">6.3</a><li>m44 element, <a href=#m44-element title="section 6">6</a><li>matrix<ul><li>argument for DOMPointReadOnly/matrixTransform(), <a href=#dom-dompointreadonly-matrixtransform-matrix title="section 2">2</a><li>definition of, <a href=#matrix title="section 6">6</a></ul><li>matrixTransform(), <a href=#dom-dompointreadonly-matrixtransform title="section 2">2</a><li>multiply(), <a href=#dom-dommatrixreadonly-multiply title="section 6.4">6.4</a><li>multiply, <a href=#multiply title="section 6">6</a><li>multiplySelf(), <a href=#dom-dommatrix-multiplyself title="section 6.5">6.5</a><li>numberSequence<ul><li>argument for DOMMatrixReadOnly/DOMMatrixReadOnly(), <a href=#dom-dommatrixreadonly-dommatrixreadonly-numbersequence title="section 6">6</a><li>argument for DOMMatrix/DOMMatrix(), <a href=#dom-dommatrix-dommatrix-numbersequence title="section 6">6</a></ul><li>origin, <a href=#origin title="section 3">3</a><li>originX<ul><li>argument for DOMMatrixReadOnly/scale(), <a href=#dom-dommatrixreadonly-scale-originx title="section 6">6</a><li>argument for DOMMatrixReadOnly/scale3d(), <a href=#dom-dommatrixreadonly-scale3d-originx title="section 6">6</a><li>argument for DOMMatrixReadOnly/scaleNonUniform(), <a href=#dom-dommatrixreadonly-scalenonuniform-originx title="section 6">6</a><li>argument for DOMMatrixReadOnly/rotate(), <a href=#dom-dommatrixreadonly-rotate-originx title="section 6">6</a><li>argument for DOMMatrix/scaleSelf(), <a href=#dom-dommatrix-scaleself-originx title="section 6">6</a><li>argument for DOMMatrix/scale3dSelf(), <a href=#dom-dommatrix-scale3dself-originx title="section 6">6</a><li>argument for DOMMatrix/scaleNonUniformSelf(), <a href=#dom-dommatrix-scalenonuniformself-originx title="section 6">6</a><li>argument for DOMMatrix/rotateSelf(), <a href=#dom-dommatrix-rotateself-originx title="section 6">6</a></ul><li>originY<ul><li>argument for DOMMatrixReadOnly/scale(), <a href=#dom-dommatrixreadonly-scale-originy title="section 6">6</a><li>argument for DOMMatrixReadOnly/scale3d(), <a href=#dom-dommatrixreadonly-scale3d-originy title="section 6">6</a><li>argument for DOMMatrixReadOnly/scaleNonUniform(), <a href=#dom-dommatrixreadonly-scalenonuniform-originy title="section 6">6</a><li>argument for DOMMatrixReadOnly/rotate(), <a href=#dom-dommatrixreadonly-rotate-originy title="section 6">6</a><li>argument for DOMMatrix/scaleSelf(), <a href=#dom-dommatrix-scaleself-originy title="section 6">6</a><li>argument for DOMMatrix/scale3dSelf(), <a href=#dom-dommatrix-scale3dself-originy title="section 6">6</a><li>argument for DOMMatrix/scaleNonUniformSelf(), <a href=#dom-dommatrix-scalenonuniformself-originy title="section 6">6</a><li>argument for DOMMatrix/rotateSelf(), <a href=#dom-dommatrix-rotateself-originy title="section 6">6</a></ul><li>originZ<ul><li>argument for DOMMatrixReadOnly/scale3d(), <a href=#dom-dommatrixreadonly-scale3d-originz title="section 6">6</a><li>argument for DOMMatrixReadOnly/scaleNonUniform(), <a href=#dom-dommatrixreadonly-scalenonuniform-originz title="section 6">6</a><li>argument for DOMMatrix/scale3dSelf(), <a href=#dom-dommatrix-scale3dself-originz title="section 6">6</a><li>argument for DOMMatrix/scaleNonUniformSelf(), <a href=#dom-dommatrix-scalenonuniformself-originz title="section 6">6</a></ul><li>other<ul><li>argument for DOMMatrixReadOnly/multiply(), <a href=#dom-dommatrixreadonly-multiply-other title="section 6">6</a><li>argument for DOMMatrix/DOMMatrix(), <a href=#dom-dommatrix-dommatrix-other title="section 6">6</a><li>argument for DOMMatrix/multiplySelf(), <a href=#dom-dommatrix-multiplyself-other title="section 6">6</a><li>argument for DOMMatrix/preMultiplySelf(), <a href=#dom-dommatrix-premultiplyself-other title="section 6">6</a></ul><li>p1<ul><li>argument for DOMQuad/DOMQuad(), <a href=#dom-domquad-domquad-p1 title="section 5">5</a><li>attribute for DOMQuad, <a href=#dom-domquad-p1 title="section 5">5</a></ul><li>p2<ul><li>argument for DOMQuad/DOMQuad(), <a href=#dom-domquad-domquad-p2 title="section 5">5</a><li>attribute for DOMQuad, <a href=#dom-domquad-p2 title="section 5">5</a></ul><li>p3<ul><li>argument for DOMQuad/DOMQuad(), <a href=#dom-domquad-domquad-p3 title="section 5">5</a><li>attribute for DOMQuad, <a href=#dom-domquad-p3 title="section 5">5</a></ul><li>p4<ul><li>argument for DOMQuad/DOMQuad(), <a href=#dom-domquad-domquad-p4 title="section 5">5</a><li>attribute for DOMQuad, <a href=#dom-domquad-p4 title="section 5">5</a></ul><li>point<ul><li>definition of, <a href=#point title="section 2">2</a><li>argument for DOMPoint/DOMPoint(), <a href=#dom-dompoint-dompoint-point title="section 2">2</a><li>argument for DOMMatrixReadOnly/transformPoint(), <a href=#dom-dommatrixreadonly-transformpoint-point title="section 6">6</a></ul><li>post-multiply, <a href=#post-multiply title="section 6">6</a><li>pre-multiply, <a href=#pre-multiply title="section 6">6</a><li>preMultiplySelf(), <a href=#dom-dommatrix-premultiplyself title="section 6.5">6.5</a><li>quadrilateral, <a href=#quadrilateral title="section 5">5</a><li>rect, <a href=#dom-domquad-domquad-rect title="section 5">5</a><li>rectangle, <a href=#rectangle title="section 3">3</a><li>right, <a href=#dom-domrectreadonly-domrect-right title="section 3">3</a><li>rotate(), <a href=#dom-dommatrixreadonly-rotate title="section 6.4">6.4</a><li>rotateAxisAngle(), <a href=#dom-dommatrixreadonly-rotateaxisangle title="section 6.4">6.4</a><li>rotateAxisAngleSelf(), <a href=#dom-dommatrix-rotateaxisangleself title="section 6.5">6.5</a><li>rotateFromVector(), <a href=#dom-dommatrixreadonly-rotatefromvector title="section 6.4">6.4</a><li>rotateFromVectorSelf(), <a href=#dom-dommatrix-rotatefromvectorself title="section 6.5">6.5</a><li>rotateSelf(), <a href=#dom-dommatrix-rotateself title="section 6.5">6.5</a><li>scale(), <a href=#dom-dommatrixreadonly-scale title="section 6.4">6.4</a><li>scale<ul><li>argument for DOMMatrixReadOnly/scale(), <a href=#dom-dommatrixreadonly-scale-scale title="section 6">6</a><li>argument for DOMMatrixReadOnly/scale3d(), <a href=#dom-dommatrixreadonly-scale3d-scale title="section 6">6</a><li>argument for DOMMatrix/scaleSelf(), <a href=#dom-dommatrix-scaleself-scale title="section 6">6</a><li>argument for DOMMatrix/scale3dSelf(), <a href=#dom-dommatrix-scale3dself-scale title="section 6">6</a></ul><li>scale3d(), <a href=#dom-dommatrixreadonly-scale3d title="section 6.4">6.4</a><li>scale3dSelf(), <a href=#dom-dommatrix-scale3dself title="section 6.5">6.5</a><li>scaleNonUniform(), <a href=#dom-dommatrixreadonly-scalenonuniform title="section 6.4">6.4</a><li>scaleNonUniformSelf(), <a href=#dom-dommatrix-scalenonuniformself title="section 6.5">6.5</a><li>scaleSelf(), <a href=#dom-dommatrix-scaleself title="section 6.5">6.5</a><li>scaleX<ul><li>argument for DOMMatrixReadOnly/scaleNonUniform(), <a href=#dom-dommatrixreadonly-scalenonuniform-scalex title="section 6">6</a><li>argument for DOMMatrix/scaleNonUniformSelf(), <a href=#dom-dommatrix-scalenonuniformself-scalex title="section 6">6</a></ul><li>scaleY<ul><li>argument for DOMMatrixReadOnly/scaleNonUniform(), <a href=#dom-dommatrixreadonly-scalenonuniform-scaley title="section 6">6</a><li>argument for DOMMatrix/scaleNonUniformSelf(), <a href=#dom-dommatrix-scalenonuniformself-scaley title="section 6">6</a></ul><li>scaleZ<ul><li>argument for DOMMatrixReadOnly/scaleNonUniform(), <a href=#dom-dommatrixreadonly-scalenonuniform-scalez title="section 6">6</a><li>argument for DOMMatrix/scaleNonUniformSelf(), <a href=#dom-dommatrix-scalenonuniformself-scalez title="section 6">6</a></ul><li>setMatrixValue(), <a href=#dom-dommatrix-setmatrixvalue title="section 6.5">6.5</a><li>skewX(), <a href=#dom-dommatrixreadonly-skewx title="section 6.4">6.4</a><li>skewXSelf(), <a href=#dom-dommatrix-skewxself title="section 6.5">6.5</a><li>skewY(), <a href=#dom-dommatrixreadonly-skewy title="section 6.4">6.4</a><li>skewYSelf(), <a href=#dom-dommatrix-skewyself title="section 6.5">6.5</a><li>stringifier(), <a href=#dom-dommatrixreadonly-stringifier title="section 6.4">6.4</a><li>SVGMatrix, <a href=#dom-svgmatrix title="section 6">6</a><li>SVGRect, <a href=#dom-svgrect title="section 3">3</a><li>sx<ul><li>argument for DOMMatrixReadOnly/skewX(), <a href=#dom-dommatrixreadonly-skewx-sx title="section 6">6</a><li>argument for DOMMatrix/skewXSelf(), <a href=#dom-dommatrix-skewxself-sx title="section 6">6</a></ul><li>sy<ul><li>argument for DOMMatrixReadOnly/skewY(), <a href=#dom-dommatrixreadonly-skewy-sy title="section 6">6</a><li>argument for DOMMatrix/skewYSelf(), <a href=#dom-dommatrix-skewyself-sy title="section 6">6</a></ul><li>toFloat32Array(), <a href=#dom-dommatrixreadonly-tofloat32array title="section 6.4">6.4</a><li>toFloat64Array(), <a href=#dom-dommatrixreadonly-tofloat64array title="section 6.4">6.4</a><li>top, <a href=#dom-domrectreadonly-domrect-top title="section 3">3</a><li>transformList<ul><li>argument for DOMMatrix/DOMMatrix(), <a href=#dom-dommatrix-dommatrix-transformlist title="section 6">6</a><li>argument for DOMMatrix/setMatrixValue(), <a href=#dom-dommatrix-setmatrixvalue-transformlist title="section 6">6</a></ul><li>transformPoint(), <a href=#dom-dommatrixreadonly-transformpoint title="section 6.4">6.4</a><li>translate(), <a href=#dom-dommatrixreadonly-translate title="section 6.4">6.4</a><li>translateSelf(), <a href=#dom-dommatrix-translateself title="section 6.5">6.5</a><li>tx<ul><li>argument for DOMMatrixReadOnly/translate(), <a href=#dom-dommatrixreadonly-translate-tx title="section 6">6</a><li>argument for DOMMatrix/translateSelf(), <a href=#dom-dommatrix-translateself-tx title="section 6">6</a></ul><li>ty<ul><li>argument for DOMMatrixReadOnly/translate(), <a href=#dom-dommatrixreadonly-translate-ty title="section 6">6</a><li>argument for DOMMatrix/translateSelf(), <a href=#dom-dommatrix-translateself-ty title="section 6">6</a></ul><li>tz<ul><li>argument for DOMMatrixReadOnly/translate(), <a href=#dom-dommatrixreadonly-translate-tz title="section 6">6</a><li>argument for DOMMatrix/translateSelf(), <a href=#dom-dommatrix-translateself-tz title="section 6">6</a></ul><li>w<ul><li>argument for DOMPointReadOnly/DOMPointReadOnly(), <a href=#dom-dompointreadonly-dompointreadonly-w title="section 2">2</a><li>argument for DOMPoint/DOMPoint(), <a href=#dom-dompoint-dompoint-w title="section 2">2</a><li>dict-member for DOMPointInit, <a href=#dom-dompointinit-w title="section 2">2</a><li>attribute for DOMPointReadOnly, DOMPoint, <a href=#dom-dompointreadonly-dompoint-w title="section 2">2</a></ul><li>width<ul><li>argument for DOMRectReadOnly/DOMRectReadOnly(), <a href=#dom-domrectreadonly-domrectreadonly-width title="section 3">3</a><li>dict-member for DOMRectInit, <a href=#dom-domrectinit-width title="section 3">3</a><li>attribute for DOMRectReadOnly, DOMRect, <a href=#dom-domrectreadonly-domrect-width title="section 3">3</a></ul><li>width dimension, <a href=#width-dimension title="section 3">3</a><li>w perspective, <a href=#w-perspective title="section 2">2</a><li>x<ul><li>argument for DOMPointReadOnly/DOMPointReadOnly(), <a href=#dom-dompointreadonly-dompointreadonly-x title="section 2">2</a><li>argument for DOMPoint/DOMPoint(), <a href=#dom-dompoint-dompoint-x title="section 2">2</a><li>dict-member for DOMPointInit, <a href=#dom-dompointinit-x title="section 2">2</a><li>attribute for DOMPointReadOnly, DOMPoint, <a href=#dom-dompointreadonly-dompoint-x title="section 2">2</a><li>argument for DOMRectReadOnly/DOMRectReadOnly(), <a href=#dom-domrectreadonly-domrectreadonly-x title="section 3">3</a><li>dict-member for DOMRectInit, <a href=#dom-domrectinit-x title="section 3">3</a><li>attribute for DOMRectReadOnly, DOMRect, <a href=#dom-domrectreadonly-domrect-x title="section 3">3</a><li>argument for DOMMatrixReadOnly/rotateFromVector(), <a href=#dom-dommatrixreadonly-rotatefromvector-x title="section 6">6</a><li>argument for DOMMatrixReadOnly/rotateAxisAngle(), <a href=#dom-dommatrixreadonly-rotateaxisangle-x title="section 6">6</a><li>argument for DOMMatrix/rotateFromVectorSelf(), <a href=#dom-dommatrix-rotatefromvectorself-x title="section 6">6</a><li>argument for DOMMatrix/rotateAxisAngleSelf(), <a href=#dom-dommatrix-rotateaxisangleself-x title="section 6">6</a></ul><li>x coordinate<ul><li>dfn for point, <a href=#x-coordinate title="section 2">2</a><li>definition of, <a href=#x-coordinate0 title="section 3">3</a></ul><li>y<ul><li>argument for DOMPointReadOnly/DOMPointReadOnly(), <a href=#dom-dompointreadonly-dompointreadonly-y title="section 2">2</a><li>argument for DOMPoint/DOMPoint(), <a href=#dom-dompoint-dompoint-y title="section 2">2</a><li>dict-member for DOMPointInit, <a href=#dom-dompointinit-y title="section 2">2</a><li>attribute for DOMPointReadOnly, DOMPoint, <a href=#dom-dompointreadonly-dompoint-y title="section 2">2</a><li>argument for DOMRectReadOnly/DOMRectReadOnly(), <a href=#dom-domrectreadonly-domrectreadonly-y title="section 3">3</a><li>dict-member for DOMRectInit, <a href=#dom-domrectinit-y title="section 3">3</a><li>attribute for DOMRectReadOnly, DOMRect, <a href=#dom-domrectreadonly-domrect-y title="section 3">3</a><li>argument for DOMMatrixReadOnly/rotateFromVector(), <a href=#dom-dommatrixreadonly-rotatefromvector-y title="section 6">6</a><li>argument for DOMMatrixReadOnly/rotateAxisAngle(), <a href=#dom-dommatrixreadonly-rotateaxisangle-y title="section 6">6</a><li>argument for DOMMatrix/rotateFromVectorSelf(), <a href=#dom-dommatrix-rotatefromvectorself-y title="section 6">6</a><li>argument for DOMMatrix/rotateAxisAngleSelf(), <a href=#dom-dommatrix-rotateaxisangleself-y title="section 6">6</a></ul><li>y coordinate<ul><li>dfn for point, <a href=#y-coordinate title="section 2">2</a><li>definition of, <a href=#y-coordinate0 title="section 3">3</a></ul><li>z<ul><li>argument for DOMPointReadOnly/DOMPointReadOnly(), <a href=#dom-dompointreadonly-dompointreadonly-z title="section 2">2</a><li>argument for DOMPoint/DOMPoint(), <a href=#dom-dompoint-dompoint-z title="section 2">2</a><li>dict-member for DOMPointInit, <a href=#dom-dompointinit-z title="section 2">2</a><li>attribute for DOMPointReadOnly, DOMPoint, <a href=#dom-dompointreadonly-dompoint-z title="section 2">2</a><li>argument for DOMMatrixReadOnly/rotateAxisAngle(), <a href=#dom-dommatrixreadonly-rotateaxisangle-z title="section 6">6</a><li>argument for DOMMatrix/rotateAxisAngleSelf(), <a href=#dom-dommatrix-rotateaxisangleself-z title="section 6">6</a></ul><li>z coordinate, <a href=#z-coordinate title="section 2">2</a></ul><h2 class="no-num heading settled" id=idl-index><span class=content>IDL Index</span><a class=self-link href=#idl-index></a></h2><pre class=idl>[Constructor(unrestricted double <a data-dfn-for=DOMPointReadOnly/DOMPointReadOnly() data-dfn-type=argument data-export="" data-global-name="DOMPointReadOnly<interface>/DOMPointReadOnly()<method>/x<argument>" href=#dom-dompointreadonly-dompointreadonly-x title=x>x</a>, unrestricted double <a data-dfn-for=DOMPointReadOnly/DOMPointReadOnly() data-dfn-type=argument data-export="" data-global-name="DOMPointReadOnly<interface>/DOMPointReadOnly()<method>/y<argument>" href=#dom-dompointreadonly-dompointreadonly-y title=y>y</a>,
             unrestricted double <a data-dfn-for=DOMPointReadOnly/DOMPointReadOnly() data-dfn-type=argument data-export="" data-global-name="DOMPointReadOnly<interface>/DOMPointReadOnly()<method>/z<argument>" href=#dom-dompointreadonly-dompointreadonly-z title=z>z</a>, unrestricted double <a data-dfn-for=DOMPointReadOnly/DOMPointReadOnly() data-dfn-type=argument data-export="" data-global-name="DOMPointReadOnly<interface>/DOMPointReadOnly()<method>/w<argument>" href=#dom-dompointreadonly-dompointreadonly-w title=w>w</a>),
 Exposed=(Window,Worker)]
interface <a data-dfn-type=interface data-export="" data-global-name="" href=#dom-dompointreadonly title=DOMPointReadOnly>DOMPointReadOnly</a> {
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMPointReadOnly<interface>/x<attribute>" data-link-for=DOMPointReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dompointreadonly-dompoint-x title=x>x</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMPointReadOnly<interface>/y<attribute>" data-link-for=DOMPointReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dompointreadonly-dompoint-y title=y>y</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMPointReadOnly<interface>/z<attribute>" data-link-for=DOMPointReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dompointreadonly-dompoint-z title=z>z</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMPointReadOnly<interface>/w<attribute>" data-link-for=DOMPointReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dompointreadonly-dompoint-w title=w>w</a>;

    <a data-link-type=idl-name href=#dom-dompoint title=DOMPoint>DOMPoint</a> <a class=idl-code data-global-name="DOMPointReadOnly<interface>/matrixtransform()<method>" data-link-for=DOMPointReadOnly data-link-type=method href=#dom-dompointreadonly-matrixtransform title=matrixTransform()>matrixTransform</a>(<a data-link-type=idl-name href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> <a data-dfn-for=DOMPointReadOnly/matrixTransform() data-dfn-type=argument data-export="" data-global-name="DOMPointReadOnly<interface>/matrixTransform()<method>/matrix<argument>" href=#dom-dompointreadonly-matrixtransform-matrix title=matrix>matrix</a>);
};

[Constructor(optional <a data-link-type=idl-name href=#dictdef-dompointinit title=DOMPointInit>DOMPointInit</a> <a data-dfn-for=DOMPoint/DOMPoint() data-dfn-type=argument data-export="" data-global-name="DOMPoint<interface>/DOMPoint()<method>/point<argument>" href=#dom-dompoint-dompoint-point title=point>point</a>),
 Constructor(optional unrestricted double <a data-dfn-for=DOMPoint/DOMPoint() data-dfn-type=argument data-export="" data-global-name="DOMPoint<interface>/DOMPoint()<method>/x<argument>" href=#dom-dompoint-dompoint-x title=x>x</a> = 0, optional unrestricted double <a data-dfn-for=DOMPoint/DOMPoint() data-dfn-type=argument data-export="" data-global-name="DOMPoint<interface>/DOMPoint()<method>/y<argument>" href=#dom-dompoint-dompoint-y title=y>y</a> = 0,
             optional unrestricted double <a data-dfn-for=DOMPoint/DOMPoint() data-dfn-type=argument data-export="" data-global-name="DOMPoint<interface>/DOMPoint()<method>/z<argument>" href=#dom-dompoint-dompoint-z title=z>z</a> = 0, optional unrestricted double <a data-dfn-for=DOMPoint/DOMPoint() data-dfn-type=argument data-export="" data-global-name="DOMPoint<interface>/DOMPoint()<method>/w<argument>" href=#dom-dompoint-dompoint-w title=w>w</a> = 1),
 Exposed=(Window,Worker)]
interface <a data-dfn-type=interface data-export="" data-global-name="" href=#dom-dompoint title=DOMPoint>DOMPoint</a> : <a data-link-type=idl-name href=#dom-dompointreadonly title=DOMPointReadOnly>DOMPointReadOnly</a> {
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMPoint<interface>/x<attribute>" data-link-for=DOMPoint data-link-type=attribute data-type="unrestricted double " href=#dom-dompointreadonly-dompoint-x title=x>x</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMPoint<interface>/y<attribute>" data-link-for=DOMPoint data-link-type=attribute data-type="unrestricted double " href=#dom-dompointreadonly-dompoint-y title=y>y</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMPoint<interface>/z<attribute>" data-link-for=DOMPoint data-link-type=attribute data-type="unrestricted double " href=#dom-dompointreadonly-dompoint-z title=z>z</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMPoint<interface>/w<attribute>" data-link-for=DOMPoint data-link-type=attribute data-type="unrestricted double " href=#dom-dompointreadonly-dompoint-w title=w>w</a>;
};

dictionary <a data-dfn-type=dictionary data-export="" data-global-name="" href=#dictdef-dompointinit title=DOMPointInit>DOMPointInit</a> {
    unrestricted double <a data-default=0 data-dfn-for=DOMPointInit data-dfn-type=dict-member data-export="" data-global-name="DOMPointInit<dictionary>/x<dict-member>" data-type="unrestricted double " href=#dom-dompointinit-x title=x>x</a> = 0;
    unrestricted double <a data-default=0 data-dfn-for=DOMPointInit data-dfn-type=dict-member data-export="" data-global-name="DOMPointInit<dictionary>/y<dict-member>" data-type="unrestricted double " href=#dom-dompointinit-y title=y>y</a> = 0;
    unrestricted double <a data-default=0 data-dfn-for=DOMPointInit data-dfn-type=dict-member data-export="" data-global-name="DOMPointInit<dictionary>/z<dict-member>" data-type="unrestricted double " href=#dom-dompointinit-z title=z>z</a> = 0;
    unrestricted double <a data-default=1 data-dfn-for=DOMPointInit data-dfn-type=dict-member data-export="" data-global-name="DOMPointInit<dictionary>/w<dict-member>" data-type="unrestricted double " href=#dom-dompointinit-w title=w>w</a> = 1;
};

[Constructor(unrestricted double x = 0, unrestricted double y = 0,
             unrestricted double width = 0, unrestricted double height = 0),
 Exposed=(Window,Worker)]
interface <a data-dfn-type=interface data-export="" data-global-name="" href=#dom-domrect title=DOMRect>DOMRect</a> : <a data-link-type=idl-name href=#dom-domrectreadonly title=DOMRectReadOnly>DOMRectReadOnly</a> {
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMRect<interface>/x<attribute>" data-link-for=DOMRect data-link-type=attribute data-type="unrestricted double " href=#dom-domrectreadonly-domrect-x title=x>x</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMRect<interface>/y<attribute>" data-link-for=DOMRect data-link-type=attribute data-type="unrestricted double " href=#dom-domrectreadonly-domrect-y title=y>y</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMRect<interface>/width<attribute>" data-link-for=DOMRect data-link-type=attribute data-type="unrestricted double " href=#dom-domrectreadonly-domrect-width title=width>width</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMRect<interface>/height<attribute>" data-link-for=DOMRect data-link-type=attribute data-type="unrestricted double " href=#dom-domrectreadonly-domrect-height title=height>height</a>;
};

[Constructor(unrestricted double <a data-dfn-for=DOMRectReadOnly/DOMRectReadOnly() data-dfn-type=argument data-export="" data-global-name="DOMRectReadOnly<interface>/DOMRectReadOnly()<method>/x<argument>" href=#dom-domrectreadonly-domrectreadonly-x title=x>x</a>, unrestricted double <a data-dfn-for=DOMRectReadOnly/DOMRectReadOnly() data-dfn-type=argument data-export="" data-global-name="DOMRectReadOnly<interface>/DOMRectReadOnly()<method>/y<argument>" href=#dom-domrectreadonly-domrectreadonly-y title=y>y</a>,
             unrestricted double <a data-dfn-for=DOMRectReadOnly/DOMRectReadOnly() data-dfn-type=argument data-export="" data-global-name="DOMRectReadOnly<interface>/DOMRectReadOnly()<method>/width<argument>" href=#dom-domrectreadonly-domrectreadonly-width title=width>width</a>, unrestricted double <a data-dfn-for=DOMRectReadOnly/DOMRectReadOnly() data-dfn-type=argument data-export="" data-global-name="DOMRectReadOnly<interface>/DOMRectReadOnly()<method>/height<argument>" href=#dom-domrectreadonly-domrectreadonly-height title=height>height</a>),
 Exposed=(Window,Worker)]
interface <a data-dfn-type=interface data-export="" data-global-name="" href=#dom-domrectreadonly title=DOMRectReadOnly>DOMRectReadOnly</a> {
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMRectReadOnly<interface>/x<attribute>" data-link-for=DOMRectReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-domrectreadonly-domrect-x title=x>x</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMRectReadOnly<interface>/y<attribute>" data-link-for=DOMRectReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-domrectreadonly-domrect-y title=y>y</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMRectReadOnly<interface>/width<attribute>" data-link-for=DOMRectReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-domrectreadonly-domrect-width title=width>width</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMRectReadOnly<interface>/height<attribute>" data-link-for=DOMRectReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-domrectreadonly-domrect-height title=height>height</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMRectReadOnly<interface>/top<attribute>" data-link-for=DOMRectReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-domrectreadonly-domrect-top title=top>top</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMRectReadOnly<interface>/right<attribute>" data-link-for=DOMRectReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-domrectreadonly-domrect-right title=right>right</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMRectReadOnly<interface>/bottom<attribute>" data-link-for=DOMRectReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-domrectreadonly-domrect-bottom title=bottom>bottom</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMRectReadOnly<interface>/left<attribute>" data-link-for=DOMRectReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-domrectreadonly-domrect-left title=left>left</a>;
};

dictionary <a data-dfn-type=dictionary data-export="" data-global-name="" href=#dictdef-domrectinit title=DOMRectInit>DOMRectInit</a> {
    unrestricted double <a data-default=0 data-dfn-for=DOMRectInit data-dfn-type=dict-member data-export="" data-global-name="DOMRectInit<dictionary>/x<dict-member>" data-type="unrestricted double " href=#dom-domrectinit-x title=x>x</a> = 0;
    unrestricted double <a data-default=0 data-dfn-for=DOMRectInit data-dfn-type=dict-member data-export="" data-global-name="DOMRectInit<dictionary>/y<dict-member>" data-type="unrestricted double " href=#dom-domrectinit-y title=y>y</a> = 0;
    unrestricted double <a data-default=0 data-dfn-for=DOMRectInit data-dfn-type=dict-member data-export="" data-global-name="DOMRectInit<dictionary>/width<dict-member>" data-type="unrestricted double " href=#dom-domrectinit-width title=width>width</a> = 0;
    unrestricted double <a data-default=0 data-dfn-for=DOMRectInit data-dfn-type=dict-member data-export="" data-global-name="DOMRectInit<dictionary>/height<dict-member>" data-type="unrestricted double " href=#dom-domrectinit-height title=height>height</a> = 0;
};

[NoInterfaceObject,
 ArrayClass]
interface <a data-dfn-type=interface data-export="" data-global-name="" href=#dom-domrectlist title=DOMRectList>DOMRectList</a> {
    readonly attribute unsigned long <a class=idl-code data-global-name="DOMRectList<interface>/length<attribute>" data-link-for=DOMRectList data-link-type=attribute data-readonly="" data-type="unsigned long " href=#dom-domrectlist-length title=length>length</a>;
    getter <a data-link-type=idl-name href=#dom-domrect title=DOMRect>DOMRect</a>? <a class=idl-code data-global-name="DOMRectList<interface>/item()<method>" data-link-for=DOMRectList data-link-type=method href=#dom-domrectlist-item title=item()>item</a>(unsigned long <a data-dfn-for=DOMRectList/item() data-dfn-type=argument data-export="" data-global-name="DOMRectList<interface>/item()<method>/index<argument>" href=#dom-domrectlist-item-index title=index>index</a>);
};

[Constructor(optional <a data-link-type=idl-name href=#dictdef-dompointinit title=DOMPointInit>DOMPointInit</a> <a data-dfn-for=DOMQuad/DOMQuad() data-dfn-type=argument data-export="" data-global-name="DOMQuad<interface>/DOMQuad()<method>/p1<argument>" href=#dom-domquad-domquad-p1 title=p1>p1</a>, optional <a data-link-type=idl-name href=#dictdef-dompointinit title=DOMPointInit>DOMPointInit</a> <a data-dfn-for=DOMQuad/DOMQuad() data-dfn-type=argument data-export="" data-global-name="DOMQuad<interface>/DOMQuad()<method>/p2<argument>" href=#dom-domquad-domquad-p2 title=p2>p2</a>,
             optional <a data-link-type=idl-name href=#dictdef-dompointinit title=DOMPointInit>DOMPointInit</a> <a data-dfn-for=DOMQuad/DOMQuad() data-dfn-type=argument data-export="" data-global-name="DOMQuad<interface>/DOMQuad()<method>/p3<argument>" href=#dom-domquad-domquad-p3 title=p3>p3</a>, optional <a data-link-type=idl-name href=#dictdef-dompointinit title=DOMPointInit>DOMPointInit</a> <a data-dfn-for=DOMQuad/DOMQuad() data-dfn-type=argument data-export="" data-global-name="DOMQuad<interface>/DOMQuad()<method>/p4<argument>" href=#dom-domquad-domquad-p4 title=p4>p4</a>),
 Constructor(optional <a data-link-type=idl-name href=#dictdef-domrectinit title=DOMRectInit>DOMRectInit</a> <a data-dfn-for=DOMQuad/DOMQuad() data-dfn-type=argument data-export="" data-global-name="DOMQuad<interface>/DOMQuad()<method>/rect<argument>" href=#dom-domquad-domquad-rect title=rect>rect</a>),
 Exposed=(Window,Worker)]
interface <a data-dfn-type=interface data-export="" data-global-name="" href=#dom-domquad title=DOMQuad>DOMQuad</a> {
    [SameObject] readonly attribute <a data-link-type=idl-name href=#dom-dompoint title=DOMPoint>DOMPoint</a> <a class=idl-code data-global-name="DOMQuad<interface>/p1<attribute>" data-link-for=DOMQuad data-link-type=attribute data-readonly="" data-type="DOMPoint " href=#dom-domquad-p1 title=p1>p1</a>;
    [SameObject] readonly attribute <a data-link-type=idl-name href=#dom-dompoint title=DOMPoint>DOMPoint</a> <a class=idl-code data-global-name="DOMQuad<interface>/p2<attribute>" data-link-for=DOMQuad data-link-type=attribute data-readonly="" data-type="DOMPoint " href=#dom-domquad-p2 title=p2>p2</a>;
    [SameObject] readonly attribute <a data-link-type=idl-name href=#dom-dompoint title=DOMPoint>DOMPoint</a> <a class=idl-code data-global-name="DOMQuad<interface>/p3<attribute>" data-link-for=DOMQuad data-link-type=attribute data-readonly="" data-type="DOMPoint " href=#dom-domquad-p3 title=p3>p3</a>;
    [SameObject] readonly attribute <a data-link-type=idl-name href=#dom-dompoint title=DOMPoint>DOMPoint</a> <a class=idl-code data-global-name="DOMQuad<interface>/p4<attribute>" data-link-for=DOMQuad data-link-type=attribute data-readonly="" data-type="DOMPoint " href=#dom-domquad-p4 title=p4>p4</a>;
    [SameObject] readonly attribute <a data-link-type=idl-name href=#dom-domrectreadonly title=DOMRectReadOnly>DOMRectReadOnly</a> <a class=idl-code data-global-name="DOMQuad<interface>/bounds<attribute>" data-link-for=DOMQuad data-link-type=attribute data-readonly="" data-type="DOMRectReadOnly " href=#dom-domquad-bounds title=bounds>bounds</a>;
};

[Constructor(sequence&lt;unrestricted double&gt; <a data-dfn-for=DOMMatrixReadOnly/DOMMatrixReadOnly() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/DOMMatrixReadOnly()<method>/numbersequence<argument>" href=#dom-dommatrixreadonly-dommatrixreadonly-numbersequence title=numberSequence>numberSequence</a>),
 Exposed=(Window,Worker)]
interface <a data-dfn-type=interface data-export="" data-global-name="" href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> {
    // These attributes are simple aliases for certain elements of the 4x4 matrix
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/a<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-a title=a>a</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/b<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-b title=b>b</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/c<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-c title=c>c</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/d<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-d title=d>d</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/e<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-e title=e>e</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/f<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-f title=f>f</a>;

    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m11<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m11 title=m11>m11</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m12<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m12 title=m12>m12</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m13<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m13 title=m13>m13</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m14<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m14 title=m14>m14</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m21<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m21 title=m21>m21</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m22<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m22 title=m22>m22</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m23<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m23 title=m23>m23</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m24<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m24 title=m24>m24</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m31<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m31 title=m31>m31</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m32<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m32 title=m32>m32</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m33<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m33 title=m33>m33</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m34<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m34 title=m34>m34</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m41<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m41 title=m41>m41</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m42<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m42 title=m42>m42</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m43<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m43 title=m43>m43</a>;
    readonly attribute unrestricted double <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/m44<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m44 title=m44>m44</a>;

    readonly attribute boolean <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/is2d<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="boolean " href=#dom-dommatrixreadonly-is2d title=is2D>is2D</a>;
    readonly attribute boolean <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/isidentity<attribute>" data-link-for=DOMMatrixReadOnly data-link-type=attribute data-readonly="" data-type="boolean " href=#dom-dommatrixreadonly-isidentity title=isIdentity>isIdentity</a>;

    // Immutable transform methods
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/translate()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-translate title=translate()>translate</a>(unrestricted double <a data-dfn-for=DOMMatrixReadOnly/translate() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/translate()<method>/tx<argument>" href=#dom-dommatrixreadonly-translate-tx title=tx>tx</a>,
                        unrestricted double <a data-dfn-for=DOMMatrixReadOnly/translate() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/translate()<method>/ty<argument>" href=#dom-dommatrixreadonly-translate-ty title=ty>ty</a>,
                        optional unrestricted double <a data-dfn-for=DOMMatrixReadOnly/translate() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/translate()<method>/tz<argument>" href=#dom-dommatrixreadonly-translate-tz title=tz>tz</a> = 0);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/scale()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-scale title=scale()>scale</a>(unrestricted double <a data-dfn-for=DOMMatrixReadOnly/scale() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scale()<method>/scale<argument>" href=#dom-dommatrixreadonly-scale-scale title=scale>scale</a>,
                    optional unrestricted double <a data-dfn-for=DOMMatrixReadOnly/scale() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scale()<method>/originx<argument>" href=#dom-dommatrixreadonly-scale-originx title=originX>originX</a> = 0,
                    optional unrestricted double <a data-dfn-for=DOMMatrixReadOnly/scale() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scale()<method>/originy<argument>" href=#dom-dommatrixreadonly-scale-originy title=originY>originY</a> = 0);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/scale3d()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-scale3d title=scale3d()>scale3d</a>(unrestricted double <a data-dfn-for=DOMMatrixReadOnly/scale3d() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scale3d()<method>/scale<argument>" href=#dom-dommatrixreadonly-scale3d-scale title=scale>scale</a>,
                      optional unrestricted double <a data-dfn-for=DOMMatrixReadOnly/scale3d() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scale3d()<method>/originx<argument>" href=#dom-dommatrixreadonly-scale3d-originx title=originX>originX</a> = 0,
                      optional unrestricted double <a data-dfn-for=DOMMatrixReadOnly/scale3d() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scale3d()<method>/originy<argument>" href=#dom-dommatrixreadonly-scale3d-originy title=originY>originY</a> = 0,
                      optional unrestricted double <a data-dfn-for=DOMMatrixReadOnly/scale3d() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scale3d()<method>/originz<argument>" href=#dom-dommatrixreadonly-scale3d-originz title=originZ>originZ</a> = 0);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/scalenonuniform()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-scalenonuniform title=scaleNonUniform()>scaleNonUniform</a>(unrestricted double <a data-dfn-for=DOMMatrixReadOnly/scaleNonUniform() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scaleNonUniform()<method>/scalex<argument>" href=#dom-dommatrixreadonly-scalenonuniform-scalex title=scaleX>scaleX</a>,
                              optional unrestricted double <a data-dfn-for=DOMMatrixReadOnly/scaleNonUniform() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scaleNonUniform()<method>/scaley<argument>" href=#dom-dommatrixreadonly-scalenonuniform-scaley title=scaleY>scaleY</a> = 1,
                              optional unrestricted double <a data-dfn-for=DOMMatrixReadOnly/scaleNonUniform() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scaleNonUniform()<method>/scalez<argument>" href=#dom-dommatrixreadonly-scalenonuniform-scalez title=scaleZ>scaleZ</a> = 1,
                              optional unrestricted double <a data-dfn-for=DOMMatrixReadOnly/scaleNonUniform() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scaleNonUniform()<method>/originx<argument>" href=#dom-dommatrixreadonly-scalenonuniform-originx title=originX>originX</a> = 0,
                              optional unrestricted double <a data-dfn-for=DOMMatrixReadOnly/scaleNonUniform() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scaleNonUniform()<method>/originy<argument>" href=#dom-dommatrixreadonly-scalenonuniform-originy title=originY>originY</a> = 0,
                              optional unrestricted double <a data-dfn-for=DOMMatrixReadOnly/scaleNonUniform() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/scaleNonUniform()<method>/originz<argument>" href=#dom-dommatrixreadonly-scalenonuniform-originz title=originZ>originZ</a> = 0);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/rotate()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-rotate title=rotate()>rotate</a>(unrestricted double <a data-dfn-for=DOMMatrixReadOnly/rotate() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/rotate()<method>/angle<argument>" href=#dom-dommatrixreadonly-rotate-angle title=angle>angle</a>,
                     optional unrestricted double <a data-dfn-for=DOMMatrixReadOnly/rotate() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/rotate()<method>/originx<argument>" href=#dom-dommatrixreadonly-rotate-originx title=originX>originX</a> = 0,
                     optional unrestricted double <a data-dfn-for=DOMMatrixReadOnly/rotate() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/rotate()<method>/originy<argument>" href=#dom-dommatrixreadonly-rotate-originy title=originY>originY</a> = 0);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/rotatefromvector()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-rotatefromvector title=rotateFromVector()>rotateFromVector</a>(unrestricted double <a data-dfn-for=DOMMatrixReadOnly/rotateFromVector() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/rotateFromVector()<method>/x<argument>" href=#dom-dommatrixreadonly-rotatefromvector-x title=x>x</a>,
                               unrestricted double <a data-dfn-for=DOMMatrixReadOnly/rotateFromVector() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/rotateFromVector()<method>/y<argument>" href=#dom-dommatrixreadonly-rotatefromvector-y title=y>y</a>);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/rotateaxisangle()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-rotateaxisangle title=rotateAxisAngle()>rotateAxisAngle</a>(unrestricted double <a data-dfn-for=DOMMatrixReadOnly/rotateAxisAngle() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/rotateAxisAngle()<method>/x<argument>" href=#dom-dommatrixreadonly-rotateaxisangle-x title=x>x</a>,
                              unrestricted double <a data-dfn-for=DOMMatrixReadOnly/rotateAxisAngle() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/rotateAxisAngle()<method>/y<argument>" href=#dom-dommatrixreadonly-rotateaxisangle-y title=y>y</a>,
                              unrestricted double <a data-dfn-for=DOMMatrixReadOnly/rotateAxisAngle() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/rotateAxisAngle()<method>/z<argument>" href=#dom-dommatrixreadonly-rotateaxisangle-z title=z>z</a>,
                              unrestricted double <a data-dfn-for=DOMMatrixReadOnly/rotateAxisAngle() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/rotateAxisAngle()<method>/angle<argument>" href=#dom-dommatrixreadonly-rotateaxisangle-angle title=angle>angle</a>);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/skewx()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-skewx title=skewX()>skewX</a>(unrestricted double <a data-dfn-for=DOMMatrixReadOnly/skewX() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/skewX()<method>/sx<argument>" href=#dom-dommatrixreadonly-skewx-sx title=sx>sx</a>);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/skewy()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-skewy title=skewY()>skewY</a>(unrestricted double <a data-dfn-for=DOMMatrixReadOnly/skewY() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/skewY()<method>/sy<argument>" href=#dom-dommatrixreadonly-skewy-sy title=sy>sy</a>);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/multiply()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-multiply title=multiply()>multiply</a>(<a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a data-dfn-for=DOMMatrixReadOnly/multiply() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/multiply()<method>/other<argument>" href=#dom-dommatrixreadonly-multiply-other title=other>other</a>);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/flipx()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-flipx title=flipX()>flipX</a>();
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/flipy()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-flipy title=flipY()>flipY</a>();
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/inverse()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-inverse title=inverse()>inverse</a>();

    <a data-link-type=idl-name href=#dom-dompoint title=DOMPoint>DOMPoint</a>            <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/transformpoint()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-transformpoint title=transformPoint()>transformPoint</a>(optional <a data-link-type=idl-name href=#dictdef-dompointinit title=DOMPointInit>DOMPointInit</a> <a data-dfn-for=DOMMatrixReadOnly/transformPoint() data-dfn-type=argument data-export="" data-global-name="DOMMatrixReadOnly<interface>/transformPoint()<method>/point<argument>" href=#dom-dommatrixreadonly-transformpoint-point title=point>point</a>);
    Float32Array        <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/tofloat32array()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-tofloat32array title=toFloat32Array()>toFloat32Array</a>();
    Float64Array        <a class=idl-code data-global-name="DOMMatrixReadOnly<interface>/tofloat64array()<method>" data-link-for=DOMMatrixReadOnly data-link-type=method href=#dom-dommatrixreadonly-tofloat64array title=toFloat64Array()>toFloat64Array</a>();
                        stringifier;
};

[Constructor,
 Constructor(DOMString <a data-dfn-for=DOMMatrix/DOMMatrix() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/DOMMatrix()<method>/transformlist<argument>" href=#dom-dommatrix-dommatrix-transformlist title=transformList>transformList</a>),
 Constructor(<a data-link-type=idl-name href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> <a data-dfn-for=DOMMatrix/DOMMatrix() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/DOMMatrix()<method>/other<argument>" href=#dom-dommatrix-dommatrix-other title=other>other</a>),
 Constructor(Float32Array <a data-dfn-for=DOMMatrix/DOMMatrix() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/DOMMatrix()<method>/array32<argument>" href=#dom-dommatrix-dommatrix-array32 title=array32>array32</a>),
 Constructor(Float64Array <a data-dfn-for=DOMMatrix/DOMMatrix() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/DOMMatrix()<method>/array64<argument>" href=#dom-dommatrix-dommatrix-array64 title=array64>array64</a>),
 Constructor(sequence&lt;unrestricted double&gt; <a data-dfn-for=DOMMatrix/DOMMatrix() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/DOMMatrix()<method>/numbersequence<argument>" href=#dom-dommatrix-dommatrix-numbersequence title=numberSequence>numberSequence</a>),
 Exposed=(Window,Worker)]
interface <a data-dfn-type=interface data-export="" data-global-name="" href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> : <a data-link-type=idl-name href=#dom-dommatrixreadonly title=DOMMatrixReadOnly>DOMMatrixReadOnly</a> {
    // These attributes are simple aliases for certain elements of the 4x4 matrix
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/a<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-a title=a>a</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/b<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-b title=b>b</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/c<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-c title=c>c</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/d<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-d title=d>d</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/e<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-e title=e>e</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/f<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-f title=f>f</a>;

    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m11<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m11 title=m11>m11</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m12<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m12 title=m12>m12</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m13<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m13 title=m13>m13</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m14<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m14 title=m14>m14</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m21<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m21 title=m21>m21</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m22<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m22 title=m22>m22</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m23<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m23 title=m23>m23</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m24<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m24 title=m24>m24</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m31<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m31 title=m31>m31</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m32<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m32 title=m32>m32</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m33<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m33 title=m33>m33</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m34<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m34 title=m34>m34</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m41<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m41 title=m41>m41</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m42<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m42 title=m42>m42</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m43<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m43 title=m43>m43</a>;
    inherit attribute unrestricted double <a class=idl-code data-global-name="DOMMatrix<interface>/m44<attribute>" data-link-for=DOMMatrix data-link-type=attribute data-type="unrestricted double " href=#dom-dommatrixreadonly-dommatrix-m44 title=m44>m44</a>;

    // Mutable transform methods
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/multiplyself()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-multiplyself title=multiplySelf()>multiplySelf</a>(<a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a data-dfn-for=DOMMatrix/multiplySelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/multiplySelf()<method>/other<argument>" href=#dom-dommatrix-multiplyself-other title=other>other</a>);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/premultiplyself()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-premultiplyself title=preMultiplySelf()>preMultiplySelf</a>(<a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a data-dfn-for=DOMMatrix/preMultiplySelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/preMultiplySelf()<method>/other<argument>" href=#dom-dommatrix-premultiplyself-other title=other>other</a>);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/translateself()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-translateself title=translateSelf()>translateSelf</a>(unrestricted double <a data-dfn-for=DOMMatrix/translateSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/translateSelf()<method>/tx<argument>" href=#dom-dommatrix-translateself-tx title=tx>tx</a>,
                     unrestricted double <a data-dfn-for=DOMMatrix/translateSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/translateSelf()<method>/ty<argument>" href=#dom-dommatrix-translateself-ty title=ty>ty</a>,
                     optional unrestricted double <a data-dfn-for=DOMMatrix/translateSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/translateSelf()<method>/tz<argument>" href=#dom-dommatrix-translateself-tz title=tz>tz</a> = 0);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/scaleself()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-scaleself title=scaleSelf()>scaleSelf</a>(unrestricted double <a data-dfn-for=DOMMatrix/scaleSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scaleSelf()<method>/scale<argument>" href=#dom-dommatrix-scaleself-scale title=scale>scale</a>,
                 optional unrestricted double <a data-dfn-for=DOMMatrix/scaleSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scaleSelf()<method>/originx<argument>" href=#dom-dommatrix-scaleself-originx title=originX>originX</a> = 0,
                 optional unrestricted double <a data-dfn-for=DOMMatrix/scaleSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scaleSelf()<method>/originy<argument>" href=#dom-dommatrix-scaleself-originy title=originY>originY</a> = 0);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/scale3dself()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-scale3dself title=scale3dSelf()>scale3dSelf</a>(unrestricted double <a data-dfn-for=DOMMatrix/scale3dSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scale3dSelf()<method>/scale<argument>" href=#dom-dommatrix-scale3dself-scale title=scale>scale</a>,
                   optional unrestricted double <a data-dfn-for=DOMMatrix/scale3dSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scale3dSelf()<method>/originx<argument>" href=#dom-dommatrix-scale3dself-originx title=originX>originX</a> = 0,
                   optional unrestricted double <a data-dfn-for=DOMMatrix/scale3dSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scale3dSelf()<method>/originy<argument>" href=#dom-dommatrix-scale3dself-originy title=originY>originY</a> = 0,
                   optional unrestricted double <a data-dfn-for=DOMMatrix/scale3dSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scale3dSelf()<method>/originz<argument>" href=#dom-dommatrix-scale3dself-originz title=originZ>originZ</a> = 0);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/scalenonuniformself()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-scalenonuniformself title=scaleNonUniformSelf()>scaleNonUniformSelf</a>(unrestricted double <a data-dfn-for=DOMMatrix/scaleNonUniformSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scaleNonUniformSelf()<method>/scalex<argument>" href=#dom-dommatrix-scalenonuniformself-scalex title=scaleX>scaleX</a>,
                           optional unrestricted double <a data-dfn-for=DOMMatrix/scaleNonUniformSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scaleNonUniformSelf()<method>/scaley<argument>" href=#dom-dommatrix-scalenonuniformself-scaley title=scaleY>scaleY</a> = 1,
                           optional unrestricted double <a data-dfn-for=DOMMatrix/scaleNonUniformSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scaleNonUniformSelf()<method>/scalez<argument>" href=#dom-dommatrix-scalenonuniformself-scalez title=scaleZ>scaleZ</a> = 1,
                           optional unrestricted double <a data-dfn-for=DOMMatrix/scaleNonUniformSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scaleNonUniformSelf()<method>/originx<argument>" href=#dom-dommatrix-scalenonuniformself-originx title=originX>originX</a> = 0,
                           optional unrestricted double <a data-dfn-for=DOMMatrix/scaleNonUniformSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scaleNonUniformSelf()<method>/originy<argument>" href=#dom-dommatrix-scalenonuniformself-originy title=originY>originY</a> = 0,
                           optional unrestricted double <a data-dfn-for=DOMMatrix/scaleNonUniformSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/scaleNonUniformSelf()<method>/originz<argument>" href=#dom-dommatrix-scalenonuniformself-originz title=originZ>originZ</a> = 0);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/rotateself()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-rotateself title=rotateSelf()>rotateSelf</a>(unrestricted double <a data-dfn-for=DOMMatrix/rotateSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/rotateSelf()<method>/angle<argument>" href=#dom-dommatrix-rotateself-angle title=angle>angle</a>,
                  optional unrestricted double <a data-dfn-for=DOMMatrix/rotateSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/rotateSelf()<method>/originx<argument>" href=#dom-dommatrix-rotateself-originx title=originX>originX</a> = 0,
                  optional unrestricted double <a data-dfn-for=DOMMatrix/rotateSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/rotateSelf()<method>/originy<argument>" href=#dom-dommatrix-rotateself-originy title=originY>originY</a> = 0);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/rotatefromvectorself()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-rotatefromvectorself title=rotateFromVectorSelf()>rotateFromVectorSelf</a>(unrestricted double <a data-dfn-for=DOMMatrix/rotateFromVectorSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/rotateFromVectorSelf()<method>/x<argument>" href=#dom-dommatrix-rotatefromvectorself-x title=x>x</a>,
                            unrestricted double <a data-dfn-for=DOMMatrix/rotateFromVectorSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/rotateFromVectorSelf()<method>/y<argument>" href=#dom-dommatrix-rotatefromvectorself-y title=y>y</a>);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/rotateaxisangleself()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-rotateaxisangleself title=rotateAxisAngleSelf()>rotateAxisAngleSelf</a>(unrestricted double <a data-dfn-for=DOMMatrix/rotateAxisAngleSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/rotateAxisAngleSelf()<method>/x<argument>" href=#dom-dommatrix-rotateaxisangleself-x title=x>x</a>,
                           unrestricted double <a data-dfn-for=DOMMatrix/rotateAxisAngleSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/rotateAxisAngleSelf()<method>/y<argument>" href=#dom-dommatrix-rotateaxisangleself-y title=y>y</a>,
                           unrestricted double <a data-dfn-for=DOMMatrix/rotateAxisAngleSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/rotateAxisAngleSelf()<method>/z<argument>" href=#dom-dommatrix-rotateaxisangleself-z title=z>z</a>,
                           unrestricted double <a data-dfn-for=DOMMatrix/rotateAxisAngleSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/rotateAxisAngleSelf()<method>/angle<argument>" href=#dom-dommatrix-rotateaxisangleself-angle title=angle>angle</a>);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/skewxself()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-skewxself title=skewXSelf()>skewXSelf</a>(unrestricted double <a data-dfn-for=DOMMatrix/skewXSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/skewXSelf()<method>/sx<argument>" href=#dom-dommatrix-skewxself-sx title=sx>sx</a>);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/skewyself()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-skewyself title=skewYSelf()>skewYSelf</a>(unrestricted double <a data-dfn-for=DOMMatrix/skewYSelf() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/skewYSelf()<method>/sy<argument>" href=#dom-dommatrix-skewyself-sy title=sy>sy</a>);
    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/invertself()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-invertself title=invertSelf()>invertSelf</a>();

    <a data-link-type=idl-name href=#dom-dommatrix title=DOMMatrix>DOMMatrix</a> <a class=idl-code data-global-name="DOMMatrix<interface>/setmatrixvalue()<method>" data-link-for=DOMMatrix data-link-type=method href=#dom-dommatrix-setmatrixvalue title=setMatrixValue()>setMatrixValue</a>(DOMString <a data-dfn-for=DOMMatrix/setMatrixValue() data-dfn-type=argument data-export="" data-global-name="DOMMatrix<interface>/setMatrixValue()<method>/transformlist<argument>" href=#dom-dommatrix-setmatrixvalue-transformlist title=transformList>transformList</a>);
};

</pre>